diff --git a/client/src/app/core/marked-translations.ts b/client/src/app/core/marked-translations.ts index 4077db6a4..7ff7dbf70 100644 --- a/client/src/app/core/marked-translations.ts +++ b/client/src/app/core/marked-translations.ts @@ -77,6 +77,7 @@ _('Input format: DD.MM.YYYY HH:MM'); _('Hide internal items when projecting subitems'); _('Number of last speakers to be shown on the projector'); _('List of speakers'); +_('The list of speakers is closed'); _('Show orange countdown in the last x seconds of speaking time'); _('Enter duration in seconds. Choose 0 to disable warning color.'); _('Hide the amount of speakers in subtitle of list of speakers slide'); diff --git a/client/src/app/shared/components/search-value-selector/search-value-selector.component.html b/client/src/app/shared/components/search-value-selector/search-value-selector.component.html index f6852b993..e3f019d3c 100644 --- a/client/src/app/shared/components/search-value-selector/search-value-selector.component.html +++ b/client/src/app/shared/components/search-value-selector/search-value-selector.component.html @@ -1,5 +1,10 @@ - +
diff --git a/client/src/app/shared/components/speaker-button/speaker-button.component.html b/client/src/app/shared/components/speaker-button/speaker-button.component.html index 2c5ce7496..e4b92c517 100644 --- a/client/src/app/shared/components/speaker-button/speaker-button.component.html +++ b/client/src/app/shared/components/speaker-button/speaker-button.component.html @@ -1,18 +1,18 @@ - diff --git a/client/src/app/shared/components/speaker-button/speaker-button.component.ts b/client/src/app/shared/components/speaker-button/speaker-button.component.ts index 334358d2c..37339635b 100644 --- a/client/src/app/shared/components/speaker-button/speaker-button.component.ts +++ b/client/src/app/shared/components/speaker-button/speaker-button.component.ts @@ -44,6 +44,14 @@ export class SpeakerButtonComponent { } } + public get icon(): string { + return this.listOfSpeakers.closed ? 'voice_over_off' : 'record_voice_over'; + } + + public get tooltip(): string { + return this.listOfSpeakers.closed ? 'The list of speakers is closed' : 'List of speakers'; + } + /** * The constructor */ diff --git a/client/src/app/site/agenda/components/list-of-speakers/list-of-speakers.component.html b/client/src/app/site/agenda/components/list-of-speakers/list-of-speakers.component.html index f055f87fa..c3b13751e 100644 --- a/client/src/app/site/agenda/components/list-of-speakers/list-of-speakers.component.html +++ b/client/src/app/site/agenda/components/list-of-speakers/list-of-speakers.component.html @@ -13,7 +13,12 @@ -

{{ viewListOfSpeakers.getTitle() }}

+

+ {{ viewListOfSpeakers.getTitle() }} + + lock + +

@@ -131,7 +136,7 @@
- @@ -166,12 +171,12 @@ > diff --git a/client/src/app/site/agenda/components/list-of-speakers/list-of-speakers.component.ts b/client/src/app/site/agenda/components/list-of-speakers/list-of-speakers.component.ts index 900da72bc..4e3744d87 100644 --- a/client/src/app/site/agenda/components/list-of-speakers/list-of-speakers.component.ts +++ b/client/src/app/site/agenda/components/list-of-speakers/list-of-speakers.component.ts @@ -369,7 +369,11 @@ export class ListOfSpeakersComponent extends BaseViewComponent implements OnInit * @returns 0 or the number of times a speaker occurs in finishedSpeakers */ public hasSpokenCount(speaker: ViewSpeaker): number { - return this.finishedSpeakers.filter(finishedSpeaker => finishedSpeaker.user.id === speaker.user.id).length; + return this.finishedSpeakers.filter(finishedSpeaker => { + if (finishedSpeaker && finishedSpeaker.user) { + return finishedSpeaker.user.id === speaker.user.id; + } + }).length; } /**