diff --git a/client/src/app/site/base/base.component.ts b/client/src/app/site/base/base.component.ts index 7f8bcd2bab..968e80be8d 100644 --- a/client/src/app/site/base/base.component.ts +++ b/client/src/app/site/base/base.component.ts @@ -93,9 +93,12 @@ export abstract class BaseComponent extends BaseUiComponent implements OnDestroy * Set the title in web browser using angulars TitleService * @param prefix The title prefix. Should be translated here. */ - public setTitle(prefix: string): void { - const translatedPrefix = this.translate.instant(prefix); - this.titleService.setTitle(translatedPrefix + this.titleSuffix); + public setTitle(prefix: string, nonTranslate?: boolean): void { + let titlePrefix = prefix; + if (!nonTranslate) { + titlePrefix = this.translate.instant(prefix); + } + this.titleService.setTitle(titlePrefix + this.titleSuffix); } /** diff --git a/client/src/app/site/pages/meetings/pages/agenda/modules/topics/pages/topic-detail/components/topic-detail/topic-detail.component.ts b/client/src/app/site/pages/meetings/pages/agenda/modules/topics/pages/topic-detail/components/topic-detail/topic-detail.component.ts index 191bdb36aa..d96d4ea9bc 100644 --- a/client/src/app/site/pages/meetings/pages/agenda/modules/topics/pages/topic-detail/components/topic-detail/topic-detail.component.ts +++ b/client/src/app/site/pages/meetings/pages/agenda/modules/topics/pages/topic-detail/components/topic-detail/topic-detail.component.ts @@ -280,7 +280,7 @@ export class TopicDetailComponent extends BaseMeetingComponent implements OnInit // also ensures edition cannot be interrupted by autoupdate if (newViewTopic) { const title = newViewTopic.getListTitle(); - super.setTitle(title); + super.setTitle(title, true); this.topic = newViewTopic; // personalInfoForm is undefined during 'new' and directly after reloading if (!this.editTopic) { diff --git a/client/src/app/site/pages/meetings/pages/assignments/pages/assignment-detail/components/assignment-detail/assignment-detail.component.ts b/client/src/app/site/pages/meetings/pages/assignments/pages/assignment-detail/components/assignment-detail/assignment-detail.component.ts index dda6004960..52056f4935 100644 --- a/client/src/app/site/pages/meetings/pages/assignments/pages/assignment-detail/components/assignment-detail/assignment-detail.component.ts +++ b/client/src/app/site/pages/meetings/pages/assignments/pages/assignment-detail/components/assignment-detail/assignment-detail.component.ts @@ -200,7 +200,7 @@ export class AssignmentDetailComponent extends BaseMeetingComponent implements O this.assignmentRepo.getViewModelObservable(assignmentId).subscribe(assignment => { if (assignment) { const title = assignment.getTitle(); - super.setTitle(title); + super.setTitle(title, true); this.assignment = assignment; if (!this.isEditing) { this.patchForm(this.assignment); diff --git a/client/src/app/site/pages/meetings/pages/autopilot/components/autopilot/autopilot.component.html b/client/src/app/site/pages/meetings/pages/autopilot/components/autopilot/autopilot.component.html index b4b984b6f8..d51dd74402 100644 --- a/client/src/app/site/pages/meetings/pages/autopilot/components/autopilot/autopilot.component.html +++ b/client/src/app/site/pages/meetings/pages/autopilot/components/autopilot/autopilot.component.html @@ -36,7 +36,7 @@