Skip to content

Commit

Permalink
Fix extensions header.
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianStehle committed Feb 26, 2021
1 parent 8563821 commit bf693e0
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<sqx-notifo topic="apps/{{contentsState.appId}}/schemas/{{schema?.name}}/contents/{{content.id}}"></sqx-notifo>

<ng-container *ngIf="contentTab | async; let tab">
<ng-container *ngIf="tab !== 'editor'">
<ng-container *ngIf="tab === 'references' || tab === 'referencing'; else defaultHeader">
<button type="button" class="btn btn-primary ml-1" (click)="publish()">
{{ 'contents.publishAll' | sqxTranslate }}
</button>
Expand All @@ -58,7 +58,7 @@
</button>
</ng-container>

<ng-container *ngIf="tab === 'editor'">
<ng-template #defaultHeader>
<sqx-preview-button [schema]="schema" [content]="content" [confirm]="confirmPreview"></sqx-preview-button>

<ng-container *ngIf="content?.canDelete">
Expand Down Expand Up @@ -86,7 +86,7 @@

<sqx-shortcut keys="ctrl+s" (trigger)="saveAndPublish()"></sqx-shortcut>
</ng-container>
</ng-container>
</ng-template>
</ng-container>
</ng-container>

Expand Down

0 comments on commit bf693e0

Please sign in to comment.