From 617a87c29cff55e29dc9b04f202df6d754cb7c2d Mon Sep 17 00:00:00 2001 From: smuddyx Date: Fri, 17 Apr 2020 15:25:58 +0200 Subject: [PATCH] published shows are readonly --- src/app/modules/shows/show/show.component.html | 5 +++-- src/app/modules/shows/show/song/song.component.html | 9 ++++++--- src/app/modules/shows/show/song/song.component.less | 5 +++++ src/app/modules/shows/show/song/song.component.ts | 2 ++ 4 files changed, 16 insertions(+), 5 deletions(-) diff --git a/src/app/modules/shows/show/show.component.html b/src/app/modules/shows/show/show.component.html index 35a39a7..99c5188 100644 --- a/src/app/modules/shows/show/show.component.html +++ b/src/app/modules/shows/show/show.component.html @@ -3,7 +3,7 @@ heading="{{show.showType|showType}}, {{show.date.toDate()|date:'dd.MM.yyyy'}} - {{getStatus(show)}}"> öffentliche Veranstaltung geschlossene Veranstaltung -

+

Text anzeigen

@@ -12,11 +12,12 @@ [showSongs]="showSongs" [showText]="showText" [song]="getSong(song.songId)" + [show]="show" class="song-row" >
-
+
Lied hinzufügen... diff --git a/src/app/modules/shows/show/song/song.component.html b/src/app/modules/shows/show/song/song.component.html index 552566c..f857a20 100644 --- a/src/app/modules/shows/show/song/song.component.html +++ b/src/app/modules/shows/show/song/song.component.html @@ -1,5 +1,7 @@
-
+
{{_song.title}}
+ +
{{_song.title}} @@ -13,6 +15,7 @@
- +
diff --git a/src/app/modules/shows/show/song/song.component.less b/src/app/modules/shows/show/song/song.component.less index 0f8de81..5107f65 100644 --- a/src/app/modules/shows/show/song/song.component.less +++ b/src/app/modules/shows/show/song/song.component.less @@ -30,6 +30,11 @@ mat-form-field { .title { grid-area: title; + + &.published { + margin: 10px 0; + font-weight: bold; + } } .keys { diff --git a/src/app/modules/shows/show/song/song.component.ts b/src/app/modules/shows/show/song/song.component.ts index 5f941fc..b019b86 100644 --- a/src/app/modules/shows/show/song/song.component.ts +++ b/src/app/modules/shows/show/song/song.component.ts @@ -8,6 +8,7 @@ import {ShowSong} from '../../services/showSong'; import {getScale} from '../../../songs/services/key.helper'; import {FormControl} from '@angular/forms'; import {ChordMode} from '../../../../widget-modules/components/song-text/song-text.component'; +import {Show} from '../../services/show'; @Component({ selector: 'app-song', @@ -15,6 +16,7 @@ import {ChordMode} from '../../../../widget-modules/components/song-text/song-te styleUrls: ['./song.component.less'] }) export class SongComponent implements OnInit { + @Input() public show: Show; @Input() public showSong: ShowSong; @Input() public showSongs: ShowSong[]; @Input() public showId: string;