Skip to content

Commit

Permalink
Update agenda projection
Browse files Browse the repository at this point in the history
Use a different Title function and phase out poll collection in
the Agenda projection
  • Loading branch information
reiterl committed Oct 30, 2023
1 parent 2c0b95f commit 1a32166
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class AgendaItemListSlideComponent extends BaseSlideComponent<AgendaItemL
public getTitle(item: SlideItem): string {
const repo = this.collectionMapperService.getRepository(item.title_information[`collection`]);
if (isAgendaItemContentObjectRepository(repo)) {
return repo!.getListTitle(item.title_information);
return repo!.getAgendaListTitle(item.title_information).title;
} else {
throw new Error(`The content object has no agenda based repository!`);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ <h1 class="line-and-icon">
</os-list-of-speakers-content>

<!-- Poll-Collection -->
<os-poll-collection [currentProjection]="projectedViewModel"></os-poll-collection>
<os-poll-collection *ngIf="showPollCollection" [currentProjection]="projectedViewModel"></os-poll-collection>

<!-- Projector -->
<mat-card class="os-card spacer-bottom-60">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ export class AutopilotComponent extends BaseMeetingComponent implements OnInit {
}
}

public get showPollCollection(): boolean {
return this.title !== this.translate.instant(`Agenda`);
}

public get projectorTitle(): string {
return this.projector?.getTitle() || ``;
}
Expand Down

0 comments on commit 1a32166

Please sign in to comment.