From 12c990de7fb255242f0881cce8cbba6df07c90f7 Mon Sep 17 00:00:00 2001 From: Sofia Papacharalampous Date: Wed, 8 May 2024 14:38:40 +0300 Subject: [PATCH] changed tab name on plan-blueprint and description-template editors --- .../description-template.routing.ts | 12 ++++++++++-- .../editor/description-template-editor.component.ts | 10 +++++++++- .../ui/admin/dmp-blueprint/dmp-blueprint.routing.ts | 12 ++++++++++-- .../editor/dmp-blueprint-editor.component.ts | 10 +++++++++- .../description/editor/description-editor.routing.ts | 10 +++++++--- dmp-frontend/src/assets/i18n/en.json | 3 +++ 6 files changed, 48 insertions(+), 9 deletions(-) diff --git a/dmp-frontend/src/app/ui/admin/description-template/description-template.routing.ts b/dmp-frontend/src/app/ui/admin/description-template/description-template.routing.ts index f5f15f030..031ce62f2 100644 --- a/dmp-frontend/src/app/ui/admin/description-template/description-template.routing.ts +++ b/dmp-frontend/src/app/ui/admin/description-template/description-template.routing.ts @@ -33,7 +33,9 @@ const routes: Routes = [ }, ...BreadcrumbService.generateRouteDataConfiguration({ title: 'BREADCRUMBS.NEW-DESCRIPTION-TEMPLATES' - }) + }), + getFromTitleService: true, + usePrefix: false } }, { @@ -51,6 +53,8 @@ const routes: Routes = [ authContext: { permissions: [AppPermission.EditDescriptionTemplate] }, + getFromTitleService: true, + usePrefix: false, action: 'clone' } }, @@ -69,6 +73,8 @@ const routes: Routes = [ authContext: { permissions: [AppPermission.EditDescriptionTemplate] }, + getFromTitleService: true, + usePrefix: false, action: 'new-version' } }, @@ -86,7 +92,9 @@ const routes: Routes = [ }), authContext: { permissions: [AppPermission.EditDescriptionTemplate] - } + }, + getFromTitleService: true, + usePrefix: false } }, diff --git a/dmp-frontend/src/app/ui/admin/description-template/editor/description-template-editor.component.ts b/dmp-frontend/src/app/ui/admin/description-template/editor/description-template-editor.component.ts index 1e1e204b5..d98d26929 100644 --- a/dmp-frontend/src/app/ui/admin/description-template/editor/description-template-editor.component.ts +++ b/dmp-frontend/src/app/ui/admin/description-template/editor/description-template-editor.component.ts @@ -42,6 +42,7 @@ import { NewEntryType, ToCEntry, ToCEntryType } from './table-of-contents/descri import { ConfigurationService } from '@app/core/services/configuration/configuration.service'; import { LockService } from '@app/core/services/lock/lock.service'; import { LockTargetType } from '@app/core/common/enum/lock-target-type'; +import { Title } from '@angular/platform-browser'; @Component({ @@ -121,8 +122,15 @@ export class DescriptionTemplateEditorComponent extends BaseEditor