From 7e58bfdc5f2e6b36cb4f0bfc9f97c8e90771313a Mon Sep 17 00:00:00 2001 From: Sofia Papacharalampous Date: Wed, 8 May 2024 16:55:08 +0300 Subject: [PATCH] changed tab-titles --- dmp-frontend/src/app/app-routing.module.ts | 33 ++++++++++++------- ...description-template-editor.component.html | 1 + .../description-template-type.routing.ts | 6 +++- ...iption-template-type-editor.component.html | 2 ++ ...cription-template-type-editor.component.ts | 11 ++++++- .../dmp-blueprint-editor.component.html | 1 + .../editor/language-editor.component.html | 1 + .../editor/language-editor.component.ts | 10 +++++- .../app/ui/admin/language/language.routing.ts | 8 +++-- .../prefilling-source-editor.component.html | 1 + .../prefilling-source-editor.component.ts | 10 +++++- .../prefilling-source.routing.ts | 8 +++-- .../reference-type-editor.component.html | 3 +- .../editor/reference-type-editor.component.ts | 12 +++++-- .../reference-type/reference-type.routing.ts | 8 +++-- .../editor/reference-editor.component.html | 1 + .../editor/reference-editor.component.ts | 11 ++++++- .../ui/admin/reference/reference.routing.ts | 14 ++++++-- ...tenant-configuration-editor.component.html | 2 +- ...tenant-configuration-editor.component.scss | 3 +- dmp-frontend/src/assets/i18n/en.json | 19 ++++++++++- .../notification-template-editor.component.ts | 10 +++++- .../notification-template.routing.ts | 8 +++-- 23 files changed, 148 insertions(+), 35 deletions(-) diff --git a/dmp-frontend/src/app/app-routing.module.ts b/dmp-frontend/src/app/app-routing.module.ts index 928379264..41a93bf18 100644 --- a/dmp-frontend/src/app/app-routing.module.ts +++ b/dmp-frontend/src/app/app-routing.module.ts @@ -67,7 +67,8 @@ const appRoutes: Routes = [ }, ...BreadcrumbService.generateRouteDataConfiguration({ title: 'BREADCRUMBS.DMP-BLUEPRINTS' - }) + }), + title: 'GENERAL.TITLES.BLUEPRINTS' } }, @@ -90,7 +91,8 @@ const appRoutes: Routes = [ }, ...BreadcrumbService.generateRouteDataConfiguration({ title: 'BREADCRUMBS.DESCRIPTION-TEMPLATES' - }) + }), + title: 'GENERAL.TITLES.DESCRIPTION-TEMPLATES' } }, { @@ -102,7 +104,8 @@ const appRoutes: Routes = [ }, ...BreadcrumbService.generateRouteDataConfiguration({ title: 'BREADCRUMBS.DESCRIPTION-TEMPLATE-TYPES' - }) + }), + title: 'GENERAL.TITLES.DESCRIPTION-TEMPLATE-TYPES' }, }, { @@ -212,7 +215,8 @@ const appRoutes: Routes = [ }, ...BreadcrumbService.generateRouteDataConfiguration({ title: 'BREADCRUMBS.LANGUAGES' - }) + }), + title: 'GENERAL.TITLES.LANGUAGES' }, }, { @@ -236,7 +240,8 @@ const appRoutes: Routes = [ }, ...BreadcrumbService.generateRouteDataConfiguration({ title: 'BREADCRUMBS.REFERENCES' - }) + }), + title: 'GENERAL.TITLES.REFERENCES' }, }, { @@ -248,7 +253,8 @@ const appRoutes: Routes = [ }, ...BreadcrumbService.generateRouteDataConfiguration({ title: 'BREADCRUMBS.REFERENCE-TYPES' - }) + }), + title: 'GENERAL.TITLES.REFERENCE-TYPES' }, }, { @@ -260,7 +266,8 @@ const appRoutes: Routes = [ }, ...BreadcrumbService.generateRouteDataConfiguration({ title: 'BREADCRUMBS.PREFILLING-SOURCES' - }) + }), + title: 'GENERAL.TITLES.PREFILLING-SOURCES' }, }, { @@ -284,7 +291,8 @@ const appRoutes: Routes = [ }, ...BreadcrumbService.generateRouteDataConfiguration({ title: 'BREADCRUMBS.TENANT-CONFIGURATION' - }) + }), + title: 'GENERAL.TITLES.TENANT-CONFIGURATION' }, }, { @@ -296,7 +304,8 @@ const appRoutes: Routes = [ }, ...BreadcrumbService.generateRouteDataConfiguration({ title: 'BREADCRUMBS.NOTIFICATIONS' - }) + }), + title: 'GENERAL.TITLES.NOTIFICATIONS' }, }, { @@ -308,7 +317,8 @@ const appRoutes: Routes = [ }, ...BreadcrumbService.generateRouteDataConfiguration({ title: 'BREADCRUMBS.NOTIFICATION-TEMPLATES' - }) + }), + title: 'GENERAL.TITLES.NOTIFICATION-TEMPLATES' }, }, { @@ -332,7 +342,8 @@ const appRoutes: Routes = [ }, ...BreadcrumbService.generateRouteDataConfiguration({ title: 'BREADCRUMBS.ENTITY-LOCKS' - }) + }), + title: 'GENERAL.TITLES.ENTITY-LOCKS' }, }, { diff --git a/dmp-frontend/src/app/ui/admin/description-template/editor/description-template-editor.component.html b/dmp-frontend/src/app/ui/admin/description-template/editor/description-template-editor.component.html index 8e6fde3c0..54cceb530 100644 --- a/dmp-frontend/src/app/ui/admin/description-template/editor/description-template-editor.component.html +++ b/dmp-frontend/src/app/ui/admin/description-template/editor/description-template-editor.component.html @@ -15,6 +15,7 @@

{{formGroup.get('label').value}}

+ diff --git a/dmp-frontend/src/app/ui/admin/description-types/description-template-type.routing.ts b/dmp-frontend/src/app/ui/admin/description-types/description-template-type.routing.ts index 5c8ba058d..879b9de61 100644 --- a/dmp-frontend/src/app/ui/admin/description-types/description-template-type.routing.ts +++ b/dmp-frontend/src/app/ui/admin/description-types/description-template-type.routing.ts @@ -23,7 +23,9 @@ const routes: Routes = [ }, ...BreadcrumbService.generateRouteDataConfiguration({ title: 'BREADCRUMBS.NEW-DESCRIPTION-TEMPLATE-TYPE' - }) + }), + getFromTitleService: true, + usePrefix: false }, component: DescriptionTemplateTypeEditorComponent, canDeactivate: [PendingChangesGuard], @@ -40,6 +42,8 @@ const routes: Routes = [ ...BreadcrumbService.generateRouteDataConfiguration({ title: 'BREADCRUMBS.EDIT-DESCRIPTION-TEMPLATE-TYPE' }), + getFromTitleService: true, + usePrefix: false, authContext: { permissions: [AppPermission.EditDescriptionTemplateType] } diff --git a/dmp-frontend/src/app/ui/admin/description-types/editor/description-template-type-editor.component.html b/dmp-frontend/src/app/ui/admin/description-types/editor/description-template-type-editor.component.html index 404a057da..f324b5d24 100644 --- a/dmp-frontend/src/app/ui/admin/description-types/editor/description-template-type-editor.component.html +++ b/dmp-frontend/src/app/ui/admin/description-types/editor/description-template-type-editor.component.html @@ -4,6 +4,8 @@
+

{{'DESCRIPTION-TEMPLATE-TYPE-EDITOR.NEW' | translate}}

+

{{formGroup?.get('name')?.value}}

diff --git a/dmp-frontend/src/app/ui/admin/description-types/editor/description-template-type-editor.component.ts b/dmp-frontend/src/app/ui/admin/description-types/editor/description-template-type-editor.component.ts index 71ca5adbe..263030156 100644 --- a/dmp-frontend/src/app/ui/admin/description-types/editor/description-template-type-editor.component.ts +++ b/dmp-frontend/src/app/ui/admin/description-types/editor/description-template-type-editor.component.ts @@ -27,6 +27,7 @@ import { ConfigurationService } from '@app/core/services/configuration/configura import { LockService } from '@app/core/services/lock/lock.service'; import { FormValidationErrorsDialogComponent } from '@common/forms/form-validation-errors-dialog/form-validation-errors-dialog.component'; import { DescriptionTemplateTypeStatus } from '@app/core/common/enum/description-template-type-status'; +import { Title } from '@angular/platform-browser'; @Component({ templateUrl: './description-template-type-editor.component.html', @@ -78,8 +79,16 @@ export class DescriptionTemplateTypeEditorComponent extends BaseEditor{{'DMP-BLUEPRINT-EDITOR.TITLE.NEW-VERSION' | translate}} {{formGroup.get('label').value}} +