published shows are readonly

This commit is contained in:
2020-04-17 15:25:58 +02:00
committed by smuddy
parent c5748d5e34
commit 617a87c29c
4 changed files with 16 additions and 5 deletions

View File

@@ -3,7 +3,7 @@
heading="{{show.showType|showType}}, {{show.date.toDate()|date:'dd.MM.yyyy'}} - {{getStatus(show)}}">
<i *ngIf="show.public">öffentliche Veranstaltung</i>
<i *ngIf="!show.public">geschlossene Veranstaltung</i>
<p>
<p *ngIf="!show.published">
<mat-checkbox [(ngModel)]="showText">Text anzeigen</mat-checkbox>
</p>
<div *ngIf="showSongs && songs" class="song-list">
@@ -12,11 +12,12 @@
[showSongs]="showSongs"
[showText]="showText"
[song]="getSong(song.songId)"
[show]="show"
class="song-row"
></app-song>
</div>
<div *ngIf="songs" class="add-row">
<div *ngIf="songs && !show.published" class="add-row">
<mat-form-field appearance="outline">
<mat-label>Lied hinzufügen...</mat-label>
<mat-select (selectionChange)="onAddSongSelectionChanged($event)">