|
|
|
@ -36,9 +36,9 @@ |
|
|
|
<div class="dropdown dropdown-options ml-1" *ngIf="content"> |
|
|
|
<sqx-preview-button [schema]="schema" [content]="content"></sqx-preview-button> |
|
|
|
|
|
|
|
<button type="button" class="btn btn-outline-secondary btn-status" (click)="dropdown.toggle()" [disabled]="schema.isSingleton && !content.isPending" |
|
|
|
[class.active]="dropdown.isOpen | async" #buttonOptions> |
|
|
|
<sqx-content-status |
|
|
|
<button type="button" class="btn btn-outline-secondary btn-status" (click)="dropdown.toggle()" [disabled]="schema.isSingleton && !content.isPending" |
|
|
|
[class.active]="dropdown.isOpen | async" #buttonOptions> |
|
|
|
<sqx-content-status |
|
|
|
[status]="content.status" |
|
|
|
[statusColor]="content.statusColor" |
|
|
|
[scheduledTo]="content.scheduleJob?.status" |
|
|
|
@ -56,7 +56,7 @@ |
|
|
|
</a> |
|
|
|
|
|
|
|
<div class="dropdown-divider"></div> |
|
|
|
|
|
|
|
|
|
|
|
<a class="dropdown-item" (click)="publishChanges()" *ngIf="content.canDraftPublish"> |
|
|
|
Publish changes |
|
|
|
</a> |
|
|
|
@ -69,10 +69,10 @@ |
|
|
|
<div class="dropdown-divider"></div> |
|
|
|
|
|
|
|
<a class="dropdown-item dropdown-item-delete" |
|
|
|
[class.disabled]="!content.canDelete" |
|
|
|
(sqxConfirmClick)="delete()" |
|
|
|
confirmTitle="Delete content" |
|
|
|
confirmText="Do you really want to delete the content?"> |
|
|
|
[class.disabled]="!content.canDelete" |
|
|
|
(sqxConfirmClick)="delete()" |
|
|
|
confirmTitle="Delete content" |
|
|
|
confirmText="Do you really want to delete the content?"> |
|
|
|
Delete |
|
|
|
</a> |
|
|
|
</ng-container> |
|
|
|
@ -80,11 +80,11 @@ |
|
|
|
</ng-container> |
|
|
|
</ng-container> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<button type="button" class="btn btn-secondary ml-1" (click)="saveAsDraft()" *ngIf="content.canDraftPropose"> |
|
|
|
Save as Draft |
|
|
|
</button> |
|
|
|
|
|
|
|
|
|
|
|
<ng-container *ngIf="content.canUpdate"> |
|
|
|
<button type="submit" class="btn btn-primary ml-1" title="CTRL + S"> |
|
|
|
Save |
|
|
|
@ -93,6 +93,10 @@ |
|
|
|
<sqx-shortcut keys="ctrl+s" (trigger)="saveAndPublish()"></sqx-shortcut> |
|
|
|
</ng-container> |
|
|
|
</ng-template> |
|
|
|
|
|
|
|
<div> |
|
|
|
<sqx-form-error bubble="true" closeable="true" [error]="contentForm.error | async"></sqx-form-error> |
|
|
|
</div> |
|
|
|
</ng-container> |
|
|
|
|
|
|
|
<ng-container content> |
|
|
|
|