changed tab-titles

This commit is contained in:
Sofia Papacharalampous 2024-05-08 16:55:08 +03:00
parent 472eacc50a
commit 7e58bfdc5f
23 changed files with 148 additions and 35 deletions

View File

@ -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'
},
},
{

View File

@ -15,6 +15,7 @@
</h3>
<h3 *ngIf="!isNew">{{formGroup.get('label').value}}</h3>
<app-navigation-breadcrumb />
</div>
<ng-container *ngTemplateOutlet="actions"></ng-container>
</div>

View File

@ -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]
}

View File

@ -4,6 +4,8 @@
<div class="row justify-content-between align-items-center mb-4 mt-4">
<div class="col">
<h3 *ngIf="isNew">{{'DESCRIPTION-TEMPLATE-TYPE-EDITOR.NEW' | translate}}</h3>
<h3 *ngIf="!isNew">{{formGroup?.get('name')?.value}}</h3>
<app-navigation-breadcrumb />
</div>

View File

@ -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<Descripti
public enumUtils: EnumUtils,
private descriptionTemplateTypeService: DescriptionTemplateTypeService,
private logger: LoggingService,
private descriptionTemplateTypeEditorService: DescriptionTemplateTypeEditorService
private descriptionTemplateTypeEditorService: DescriptionTemplateTypeEditorService,
public titleService: Title
) {
const descriptionLabel:string = route.snapshot.data['entity']?.name;
if (descriptionLabel) {
titleService.setTitle(descriptionLabel);
} else {
titleService.setTitle('DESCRIPTION-TEMPLATE-TYPE-EDITOR.TITLE-EDIT-DESCRIPTION-TEMPLATE-TYPE');
}
super(dialog, language, formService, router, uiNotificationService, httpErrorHandlingService, filterService, datePipe, route, queryParamsService, lockService, authService, configurationService);
}

View File

@ -13,6 +13,7 @@
<span>{{'DMP-BLUEPRINT-EDITOR.TITLE.NEW-VERSION' | translate}}</span>
{{formGroup.get('label').value}}
</h3>
<app-navigation-breadcrumb />
</div>
<div class="col-md-auto mb-md-0 col-12 mb-2" *ngIf="!isNew && !isClone && !isNewVersion && this.editorModel.belongsToCurrentTenant != false">
<button [disabled]="isLocked" mat-button class="action-btn" type="button" (click)="delete()">

View File

@ -4,6 +4,7 @@
<div class="row align-items-center mt-4 mb-4" *ngIf="formGroup">
<div class="col">
<h3 *ngIf="isNew && !isClone">{{'LANGUAGE-EDITOR.NEW' | translate}}</h3>
<h3 *ngIf="!isNew">{{ formGroup.get('code')?.value }}</h3>
<app-navigation-breadcrumb />
</div>
<div class="col-auto">

View File

@ -31,6 +31,7 @@ import { LanguageHttpService } from '@app/core/services/language/language.http.s
import { MatCheckboxChange } from '@angular/material/checkbox';
import { ConfigurationService } from '@app/core/services/configuration/configuration.service';
import { LockService } from '@app/core/services/lock/lock.service';
import { Title } from '@angular/platform-browser';
@Component({
@ -86,8 +87,15 @@ export class LanguageEditorComponent extends BaseEditor<LanguageEditorModel, Lan
private logger: LoggingService,
private languageEditorService: LanguageEditorService,
private fileUtils: FileUtils,
private matomoService: MatomoService
private matomoService: MatomoService,
private titleService: Title
) {
const descriptionLabel:string = route.snapshot.data['entity']?.code;
if (descriptionLabel) {
titleService.setTitle(descriptionLabel);
} else {
titleService.setTitle('LANGUAGE-EDITOR.TITLE-EDIT-LANGUAGE');
}
super(dialog, language, formService, router, uiNotificationService, httpErrorHandlingService, filterService, datePipe, route, queryParamsService, lockService, authService, configurationService);
}

View File

@ -25,7 +25,9 @@ const routes: Routes = [
},
...BreadcrumbService.generateRouteDataConfiguration({
title: 'BREADCRUMBS.NEW-LANGUAGE'
})
}),
getFromTitleService: true,
usePrefix: false
}
},
{
@ -42,7 +44,9 @@ const routes: Routes = [
}),
authContext: {
permissions: [AppPermission.EditLanguage]
}
},
getFromTitleService: true,
usePrefix: false
}
},

View File

@ -5,6 +5,7 @@
<div class="row justify-content-between align-items-center mt-4 mb-4">
<div class="col">
<h3 *ngIf="isNew">{{'PREFILLING-SOURCE-EDITOR.NEW' | translate}}</h3>
<h3 *ngIf="!isNew">{{ formGroup.get('label')?.value }}</h3>
<app-navigation-breadcrumb />
</div>
<div class="col-auto">

View File

@ -30,6 +30,7 @@ import { ResultFieldsMappingConfigurationEditorModel } from '@app/ui/external-fe
import { MatCheckboxChange } from '@angular/material/checkbox';
import { ConfigurationService } from '@app/core/services/configuration/configuration.service';
import { LockService } from '@app/core/services/lock/lock.service';
import { Title } from '@angular/platform-browser';
@Component({
selector: 'app-prefilling-source-editor-component',
@ -76,8 +77,15 @@ export class PrefillingSourceEditorComponent extends BaseEditor<PrefillingSource
private prefillingSourceService: PrefillingSourceService,
private logger: LoggingService,
private prefillingSourceEditorService: PrefillingSourceEditorService,
private matomoService: MatomoService
private matomoService: MatomoService,
private titleService: Title
) {
const descriptionLabel:string = route.snapshot.data['entity']?.label;
if (descriptionLabel) {
titleService.setTitle(descriptionLabel);
} else {
titleService.setTitle('PREFILLING-SOURCE-EDITOR.TITLE-EDIT-PREFILLING-SOURCE');
}
super(dialog, language, formService, router, uiNotificationService, httpErrorHandlingService, filterService, datePipe, route, queryParamsService, lockService, authService, configurationService);
}

View File

@ -26,7 +26,9 @@ const routes: Routes = [
},
...BreadcrumbService.generateRouteDataConfiguration({
title: 'BREADCRUMBS.NEW-PREFILLING-SOURCE'
})
}),
getFromTitleService: true,
usePrefix: false
}
},
{
@ -43,7 +45,9 @@ const routes: Routes = [
}),
authContext: {
permissions: [AppPermission.EditPrefillingSource]
}
},
getFromTitleService: true,
usePrefix: false
}
},

View File

@ -1,9 +1,10 @@
<div class="container-fluid">
<div class="row reference-type-editor">
<div class="col-md-10 offset-md-1 colums-gapped">
<div class="row justify-content-between align-items-center">
<div class="row align-items-center mt-4 mb-4">
<div class="col-md col-12">
<h3 *ngIf="isNew">{{'REFERENCE-TYPE-EDITOR.NEW' | translate}}</h3>
<h3 *ngIf="!isNew">{{ formGroup?.get('name')?.value }}</h3>
<app-navigation-breadcrumb />
</div>

View File

@ -30,6 +30,7 @@ import { ReferenceTypeEditorResolver } from './reference-type-editor.resolver';
import { ReferenceTypeEditorService } from './reference-type-editor.service';
import { ConfigurationService } from '@app/core/services/configuration/configuration.service';
import { LockService } from '@app/core/services/lock/lock.service';
import { Title } from '@angular/platform-browser';
@Component({
@ -88,8 +89,15 @@ export class ReferenceTypeEditorComponent extends BaseEditor<ReferenceTypeEditor
public enumUtils: EnumUtils,
public referenceTypeService: ReferenceTypeService,
private logger: LoggingService,
private referenceTypeEditorService: ReferenceTypeEditorService
) {
private referenceTypeEditorService: ReferenceTypeEditorService,
private titleService: Title
) {
const descriptionLabel:string = route.snapshot.data['entity']?.name;
if (descriptionLabel) {
titleService.setTitle(descriptionLabel);
} else {
titleService.setTitle('REFERENCE-TYPE-EDITOR.TITLE-EDIT-REFERENCE-TYPE');
}
super(dialog, language, formService, router, uiNotificationService, httpErrorHandlingService, filterService, datePipe, route, queryParamsService, lockService, authService, configurationService);
}

View File

@ -27,7 +27,9 @@ const routes: Routes = [
},
...BreadcrumbService.generateRouteDataConfiguration({
title: 'BREADCRUMBS.NEW-REFERENCE-TYPE'
})
}),
getFromTitleService: true,
usePrefix: false
}
},
{
@ -44,7 +46,9 @@ const routes: Routes = [
}),
authContext: {
permissions: [AppPermission.EditReferenceType]
}
},
getFromTitleService: true,
usePrefix: false
}
},

View File

@ -4,6 +4,7 @@
<div class="row align-items-center mt-4 mb-4" *ngIf="formGroup">
<div class="col-md col-12">
<h3 *ngIf="isNew && !isClone">{{'REFERENCE-EDITOR.NEW' | translate}}</h3>
<h3 *ngIf="!isNew">{{ formGroup.get('label').value }}</h3>
<app-navigation-breadcrumb />
</div>
<div class="col-auto">

View File

@ -32,6 +32,7 @@ import { ReferenceEditorResolver } from './reference-editor.resolver';
import { ReferenceEditorService } from './reference-editor.service';
import { LockService } from '@app/core/services/lock/lock.service';
import { ConfigurationService } from '@app/core/services/configuration/configuration.service';
import { Title } from '@angular/platform-browser';
@Component({
@ -88,8 +89,16 @@ export class ReferenceEditorComponent extends BaseEditor<ReferenceEditorModel, R
private referenceEditorService: ReferenceEditorService,
private fileUtils: FileUtils,
private matomoService: MatomoService,
public referenceTypeService: ReferenceTypeService
public referenceTypeService: ReferenceTypeService,
public titleService: Title
) {
const descriptionLabel:string = route.snapshot.data['entity']?.label;
if (descriptionLabel) {
titleService.setTitle(descriptionLabel);
} else {
titleService.setTitle('REFERENCE-EDITOR.TITLE-EDIT-REFERENCE');
}
super(dialog, language, formService, router, uiNotificationService, httpErrorHandlingService, filterService, datePipe, route, queryParamsService, lockService, authService, configurationService);
}

View File

@ -13,7 +13,10 @@ const routes: Routes = [
{
path: '',
component: ReferenceListingComponent,
canActivate: [AuthGuard]
canActivate: [AuthGuard],
data: {
breadcrumb: true
}
},
{
path: 'new',
@ -26,7 +29,9 @@ const routes: Routes = [
},
...BreadcrumbService.generateRouteDataConfiguration({
title: 'BREADCRUMBS.NEW-REFERENCE'
})
}),
getFromTitleService: true,
usePrefix: false
}
},
{
@ -38,12 +43,15 @@ const routes: Routes = [
'entity': ReferenceEditorResolver
},
data: {
breadcrumb: true,
...BreadcrumbService.generateRouteDataConfiguration({
title: 'BREADCRUMBS.EDIT-REFERENCE'
}),
authContext: {
permissions: [AppPermission.EditReference]
}
},
getFromTitleService: true,
usePrefix: false
}
},

View File

@ -1,6 +1,6 @@
<div class="container-fluid">
<div class="row">
<div class="col-md-10 offset-md-1 tenant-configuration-component">
<div class="col-md-10 offset-md-1">
<div class="row align-items-center mb-4 mt-4" >
<div class="col-md col-12">
<h3>{{'TENANT-CONFIGURATION-EDITOR.TITLE' | translate}}</h3>

View File

@ -1,6 +1,5 @@
.tenant-configuration-component {
padding-top: 1em;
.configuration-container {
margin-top: 2em;
}

View File

@ -90,6 +90,17 @@
"PLANS": "My Plans",
"EXPLORE-PLANS": "Published Plans",
"DESCRIPTIONS": "My Descriptions",
"BLUEPRINTS": "Blueprints",
"DESCRIPTION-TEMPLATES": "Description Templates",
"DESCRIPTION-TEMPLATE-TYPES": "Description Types",
"ENTITY-LOCKS": "Entity Locks",
"REFERENCES": "References",
"LANGUAGES": "Languages",
"REFERENCE-TYPES": "Reference Types",
"PREFILLING-SOURCES": "Prefilling Sources",
"TENANT-CONFIGURATION": "Tenant Configuration",
"NOTIFICATIONS": "Notifications",
"NOTIFICATION-TEMPLATES": "Notification Templates",
"EXPLORE": "Published Descriptions",
"USERS": "Users",
"PROFILE": "My Profile",
@ -368,7 +379,7 @@
"NEW-PROFILE-VERSION": "New Version Of ",
"NEW-PROFILE-CLONE": "New Clone Of "
},
"TITLE-EDIT-DESCRIPTION-TEMPLATE": "Edit Description Template",
"TITLE-EDIT-DESCRIPTION-TEMPLATE": "Editing Description Template",
"FIELDS": {
"DATASET-TITLE": "Description Template Name",
"DATASET-DESCRIPTION": "Description"
@ -1063,6 +1074,7 @@
},
"LANGUAGE-EDITOR": {
"NEW": "New Language",
"TITLE-EDIT-LANGUAGE": "Editing Language",
"FIELDS": {
"CODE": "Code",
"PAYLOAD": "Payload",
@ -1131,6 +1143,7 @@
},
"NOTIFICATION-TEMPLATE-EDITOR": {
"NEW": "New Notification Template",
"TITLE-EDIT-NOTIFICATION-TEMPLATE": "Editing Notification Template",
"FIELDS": {
"NOTIFICATION-TYPE": "Notification Type",
"LANGUAGE": "Language",
@ -1244,6 +1257,7 @@
},
"DESCRIPTION-TEMPLATE-TYPE-EDITOR": {
"NEW": "New Description Type",
"TITLE-EDIT-DESCRIPTION-TEMPLATE-TYPE": "Editing Description Template Type",
"FIELDS": {
"NAME": "Name"
},
@ -1264,6 +1278,7 @@
},
"REFERENCE-TYPE-EDITOR": {
"NEW": "New Reference Type",
"TITLE-EDIT-REFERENCE-TYPE": "Editing Reference Type",
"SOURCES-REQUIRED": "Required",
"FIELDS": {
"SOURCE-CONFIGURATION": "Source Configuration",
@ -1361,6 +1376,7 @@
},
"PREFILLING-SOURCE-EDITOR": {
"NEW": "New Prefilling Source",
"TITLE-EDIT-PREFILLING-SOURCE": "Editing Prefilling Source",
"FIELDS": {
"FIXED-VALUE-FIELDS": "Fixed Value Fields",
"FIELDS": "API Fields",
@ -1386,6 +1402,7 @@
},
"REFERENCE-EDITOR": {
"NEW": "New Reference",
"TITLE-EDIT-REFERENCE": "Editing Reference",
"FIELDS": {
"LABEL": "Label",
"TYPE": "Type",

View File

@ -36,6 +36,7 @@ import { NotificationTemplateKind } from '@notification-service/core/enum/notifi
import { NotificationType } from '@notification-service/core/enum/notification-type.enum';
import { EmailOverrideMode } from '@notification-service/core/enum/email-override-mode';
import { NotificationDataType } from '@notification-service/core/enum/notification-data-type';
import { Title } from '@angular/platform-browser';
@Component({
selector: 'app-notification-template-editor',
@ -98,8 +99,15 @@ export class NotificationTemplateEditorComponent extends BaseEditor<Notification
private notificationTemplateService: NotificationTemplateService,
private notificationTemplateEditorService: NotificationTemplateEditorService,
private logger: LoggingService,
private matomoService: MatomoService
private matomoService: MatomoService,
private titleService: Title
) {
const descriptionLabel:string = route.snapshot.data['entity']?.notificationType;
if (descriptionLabel) {
titleService.setTitle(descriptionLabel);
} else {
titleService.setTitle('NOTIFICATION-SERVICE.NOTIFICATION-TEMPLATE-EDITOR.TITLE-EDIT-NOTIFICATION-TEMPLATE');
}
super(dialog, language, formService, router, uiNotificationService, httpErrorHandlingService, filterService, datePipe, route, queryParamsService, lockService, authService, configurationService);
}

View File

@ -26,7 +26,9 @@ const routes: Routes = [
},
...BreadcrumbService.generateRouteDataConfiguration({
title: 'BREADCRUMBS.NEW-TENANT'
})
}),
getFromTitleService: true,
usePrefix: false
}
},
{
@ -43,7 +45,9 @@ const routes: Routes = [
}),
authContext: {
permissions: [AppPermission.EditNotificationTemplate]
}
},
getFromTitleService: true,
usePrefix: false
}
},