changed tab-titles
This commit is contained in:
parent
472eacc50a
commit
7e58bfdc5f
|
@ -67,7 +67,8 @@ const appRoutes: Routes = [
|
||||||
},
|
},
|
||||||
...BreadcrumbService.generateRouteDataConfiguration({
|
...BreadcrumbService.generateRouteDataConfiguration({
|
||||||
title: 'BREADCRUMBS.DMP-BLUEPRINTS'
|
title: 'BREADCRUMBS.DMP-BLUEPRINTS'
|
||||||
})
|
}),
|
||||||
|
title: 'GENERAL.TITLES.BLUEPRINTS'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -90,7 +91,8 @@ const appRoutes: Routes = [
|
||||||
},
|
},
|
||||||
...BreadcrumbService.generateRouteDataConfiguration({
|
...BreadcrumbService.generateRouteDataConfiguration({
|
||||||
title: 'BREADCRUMBS.DESCRIPTION-TEMPLATES'
|
title: 'BREADCRUMBS.DESCRIPTION-TEMPLATES'
|
||||||
})
|
}),
|
||||||
|
title: 'GENERAL.TITLES.DESCRIPTION-TEMPLATES'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -102,7 +104,8 @@ const appRoutes: Routes = [
|
||||||
},
|
},
|
||||||
...BreadcrumbService.generateRouteDataConfiguration({
|
...BreadcrumbService.generateRouteDataConfiguration({
|
||||||
title: 'BREADCRUMBS.DESCRIPTION-TEMPLATE-TYPES'
|
title: 'BREADCRUMBS.DESCRIPTION-TEMPLATE-TYPES'
|
||||||
})
|
}),
|
||||||
|
title: 'GENERAL.TITLES.DESCRIPTION-TEMPLATE-TYPES'
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -212,7 +215,8 @@ const appRoutes: Routes = [
|
||||||
},
|
},
|
||||||
...BreadcrumbService.generateRouteDataConfiguration({
|
...BreadcrumbService.generateRouteDataConfiguration({
|
||||||
title: 'BREADCRUMBS.LANGUAGES'
|
title: 'BREADCRUMBS.LANGUAGES'
|
||||||
})
|
}),
|
||||||
|
title: 'GENERAL.TITLES.LANGUAGES'
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -236,7 +240,8 @@ const appRoutes: Routes = [
|
||||||
},
|
},
|
||||||
...BreadcrumbService.generateRouteDataConfiguration({
|
...BreadcrumbService.generateRouteDataConfiguration({
|
||||||
title: 'BREADCRUMBS.REFERENCES'
|
title: 'BREADCRUMBS.REFERENCES'
|
||||||
})
|
}),
|
||||||
|
title: 'GENERAL.TITLES.REFERENCES'
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -248,7 +253,8 @@ const appRoutes: Routes = [
|
||||||
},
|
},
|
||||||
...BreadcrumbService.generateRouteDataConfiguration({
|
...BreadcrumbService.generateRouteDataConfiguration({
|
||||||
title: 'BREADCRUMBS.REFERENCE-TYPES'
|
title: 'BREADCRUMBS.REFERENCE-TYPES'
|
||||||
})
|
}),
|
||||||
|
title: 'GENERAL.TITLES.REFERENCE-TYPES'
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -260,7 +266,8 @@ const appRoutes: Routes = [
|
||||||
},
|
},
|
||||||
...BreadcrumbService.generateRouteDataConfiguration({
|
...BreadcrumbService.generateRouteDataConfiguration({
|
||||||
title: 'BREADCRUMBS.PREFILLING-SOURCES'
|
title: 'BREADCRUMBS.PREFILLING-SOURCES'
|
||||||
})
|
}),
|
||||||
|
title: 'GENERAL.TITLES.PREFILLING-SOURCES'
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -284,7 +291,8 @@ const appRoutes: Routes = [
|
||||||
},
|
},
|
||||||
...BreadcrumbService.generateRouteDataConfiguration({
|
...BreadcrumbService.generateRouteDataConfiguration({
|
||||||
title: 'BREADCRUMBS.TENANT-CONFIGURATION'
|
title: 'BREADCRUMBS.TENANT-CONFIGURATION'
|
||||||
})
|
}),
|
||||||
|
title: 'GENERAL.TITLES.TENANT-CONFIGURATION'
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -296,7 +304,8 @@ const appRoutes: Routes = [
|
||||||
},
|
},
|
||||||
...BreadcrumbService.generateRouteDataConfiguration({
|
...BreadcrumbService.generateRouteDataConfiguration({
|
||||||
title: 'BREADCRUMBS.NOTIFICATIONS'
|
title: 'BREADCRUMBS.NOTIFICATIONS'
|
||||||
})
|
}),
|
||||||
|
title: 'GENERAL.TITLES.NOTIFICATIONS'
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -308,7 +317,8 @@ const appRoutes: Routes = [
|
||||||
},
|
},
|
||||||
...BreadcrumbService.generateRouteDataConfiguration({
|
...BreadcrumbService.generateRouteDataConfiguration({
|
||||||
title: 'BREADCRUMBS.NOTIFICATION-TEMPLATES'
|
title: 'BREADCRUMBS.NOTIFICATION-TEMPLATES'
|
||||||
})
|
}),
|
||||||
|
title: 'GENERAL.TITLES.NOTIFICATION-TEMPLATES'
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -332,7 +342,8 @@ const appRoutes: Routes = [
|
||||||
},
|
},
|
||||||
...BreadcrumbService.generateRouteDataConfiguration({
|
...BreadcrumbService.generateRouteDataConfiguration({
|
||||||
title: 'BREADCRUMBS.ENTITY-LOCKS'
|
title: 'BREADCRUMBS.ENTITY-LOCKS'
|
||||||
})
|
}),
|
||||||
|
title: 'GENERAL.TITLES.ENTITY-LOCKS'
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
</h3>
|
</h3>
|
||||||
|
|
||||||
<h3 *ngIf="!isNew">{{formGroup.get('label').value}}</h3>
|
<h3 *ngIf="!isNew">{{formGroup.get('label').value}}</h3>
|
||||||
|
<app-navigation-breadcrumb />
|
||||||
</div>
|
</div>
|
||||||
<ng-container *ngTemplateOutlet="actions"></ng-container>
|
<ng-container *ngTemplateOutlet="actions"></ng-container>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -23,7 +23,9 @@ const routes: Routes = [
|
||||||
},
|
},
|
||||||
...BreadcrumbService.generateRouteDataConfiguration({
|
...BreadcrumbService.generateRouteDataConfiguration({
|
||||||
title: 'BREADCRUMBS.NEW-DESCRIPTION-TEMPLATE-TYPE'
|
title: 'BREADCRUMBS.NEW-DESCRIPTION-TEMPLATE-TYPE'
|
||||||
})
|
}),
|
||||||
|
getFromTitleService: true,
|
||||||
|
usePrefix: false
|
||||||
},
|
},
|
||||||
component: DescriptionTemplateTypeEditorComponent,
|
component: DescriptionTemplateTypeEditorComponent,
|
||||||
canDeactivate: [PendingChangesGuard],
|
canDeactivate: [PendingChangesGuard],
|
||||||
|
@ -40,6 +42,8 @@ const routes: Routes = [
|
||||||
...BreadcrumbService.generateRouteDataConfiguration({
|
...BreadcrumbService.generateRouteDataConfiguration({
|
||||||
title: 'BREADCRUMBS.EDIT-DESCRIPTION-TEMPLATE-TYPE'
|
title: 'BREADCRUMBS.EDIT-DESCRIPTION-TEMPLATE-TYPE'
|
||||||
}),
|
}),
|
||||||
|
getFromTitleService: true,
|
||||||
|
usePrefix: false,
|
||||||
authContext: {
|
authContext: {
|
||||||
permissions: [AppPermission.EditDescriptionTemplateType]
|
permissions: [AppPermission.EditDescriptionTemplateType]
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,6 +4,8 @@
|
||||||
|
|
||||||
<div class="row justify-content-between align-items-center mb-4 mt-4">
|
<div class="row justify-content-between align-items-center mb-4 mt-4">
|
||||||
<div class="col">
|
<div class="col">
|
||||||
|
<h3 *ngIf="isNew">{{'DESCRIPTION-TEMPLATE-TYPE-EDITOR.NEW' | translate}}</h3>
|
||||||
|
<h3 *ngIf="!isNew">{{formGroup?.get('name')?.value}}</h3>
|
||||||
<app-navigation-breadcrumb />
|
<app-navigation-breadcrumb />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -27,6 +27,7 @@ import { ConfigurationService } from '@app/core/services/configuration/configura
|
||||||
import { LockService } from '@app/core/services/lock/lock.service';
|
import { LockService } from '@app/core/services/lock/lock.service';
|
||||||
import { FormValidationErrorsDialogComponent } from '@common/forms/form-validation-errors-dialog/form-validation-errors-dialog.component';
|
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 { DescriptionTemplateTypeStatus } from '@app/core/common/enum/description-template-type-status';
|
||||||
|
import { Title } from '@angular/platform-browser';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
templateUrl: './description-template-type-editor.component.html',
|
templateUrl: './description-template-type-editor.component.html',
|
||||||
|
@ -78,8 +79,16 @@ export class DescriptionTemplateTypeEditorComponent extends BaseEditor<Descripti
|
||||||
public enumUtils: EnumUtils,
|
public enumUtils: EnumUtils,
|
||||||
private descriptionTemplateTypeService: DescriptionTemplateTypeService,
|
private descriptionTemplateTypeService: DescriptionTemplateTypeService,
|
||||||
private logger: LoggingService,
|
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);
|
super(dialog, language, formService, router, uiNotificationService, httpErrorHandlingService, filterService, datePipe, route, queryParamsService, lockService, authService, configurationService);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -13,6 +13,7 @@
|
||||||
<span>{{'DMP-BLUEPRINT-EDITOR.TITLE.NEW-VERSION' | translate}}</span>
|
<span>{{'DMP-BLUEPRINT-EDITOR.TITLE.NEW-VERSION' | translate}}</span>
|
||||||
{{formGroup.get('label').value}}
|
{{formGroup.get('label').value}}
|
||||||
</h3>
|
</h3>
|
||||||
|
<app-navigation-breadcrumb />
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-auto mb-md-0 col-12 mb-2" *ngIf="!isNew && !isClone && !isNewVersion && this.editorModel.belongsToCurrentTenant != false">
|
<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()">
|
<button [disabled]="isLocked" mat-button class="action-btn" type="button" (click)="delete()">
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
<div class="row align-items-center mt-4 mb-4" *ngIf="formGroup">
|
<div class="row align-items-center mt-4 mb-4" *ngIf="formGroup">
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<h3 *ngIf="isNew && !isClone">{{'LANGUAGE-EDITOR.NEW' | translate}}</h3>
|
<h3 *ngIf="isNew && !isClone">{{'LANGUAGE-EDITOR.NEW' | translate}}</h3>
|
||||||
|
<h3 *ngIf="!isNew">{{ formGroup.get('code')?.value }}</h3>
|
||||||
<app-navigation-breadcrumb />
|
<app-navigation-breadcrumb />
|
||||||
</div>
|
</div>
|
||||||
<div class="col-auto">
|
<div class="col-auto">
|
||||||
|
|
|
@ -31,6 +31,7 @@ import { LanguageHttpService } from '@app/core/services/language/language.http.s
|
||||||
import { MatCheckboxChange } from '@angular/material/checkbox';
|
import { MatCheckboxChange } from '@angular/material/checkbox';
|
||||||
import { ConfigurationService } from '@app/core/services/configuration/configuration.service';
|
import { ConfigurationService } from '@app/core/services/configuration/configuration.service';
|
||||||
import { LockService } from '@app/core/services/lock/lock.service';
|
import { LockService } from '@app/core/services/lock/lock.service';
|
||||||
|
import { Title } from '@angular/platform-browser';
|
||||||
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
@ -86,8 +87,15 @@ export class LanguageEditorComponent extends BaseEditor<LanguageEditorModel, Lan
|
||||||
private logger: LoggingService,
|
private logger: LoggingService,
|
||||||
private languageEditorService: LanguageEditorService,
|
private languageEditorService: LanguageEditorService,
|
||||||
private fileUtils: FileUtils,
|
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);
|
super(dialog, language, formService, router, uiNotificationService, httpErrorHandlingService, filterService, datePipe, route, queryParamsService, lockService, authService, configurationService);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,9 @@ const routes: Routes = [
|
||||||
},
|
},
|
||||||
...BreadcrumbService.generateRouteDataConfiguration({
|
...BreadcrumbService.generateRouteDataConfiguration({
|
||||||
title: 'BREADCRUMBS.NEW-LANGUAGE'
|
title: 'BREADCRUMBS.NEW-LANGUAGE'
|
||||||
})
|
}),
|
||||||
|
getFromTitleService: true,
|
||||||
|
usePrefix: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -42,7 +44,9 @@ const routes: Routes = [
|
||||||
}),
|
}),
|
||||||
authContext: {
|
authContext: {
|
||||||
permissions: [AppPermission.EditLanguage]
|
permissions: [AppPermission.EditLanguage]
|
||||||
}
|
},
|
||||||
|
getFromTitleService: true,
|
||||||
|
usePrefix: false
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
<div class="row justify-content-between align-items-center mt-4 mb-4">
|
<div class="row justify-content-between align-items-center mt-4 mb-4">
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<h3 *ngIf="isNew">{{'PREFILLING-SOURCE-EDITOR.NEW' | translate}}</h3>
|
<h3 *ngIf="isNew">{{'PREFILLING-SOURCE-EDITOR.NEW' | translate}}</h3>
|
||||||
|
<h3 *ngIf="!isNew">{{ formGroup.get('label')?.value }}</h3>
|
||||||
<app-navigation-breadcrumb />
|
<app-navigation-breadcrumb />
|
||||||
</div>
|
</div>
|
||||||
<div class="col-auto">
|
<div class="col-auto">
|
||||||
|
|
|
@ -30,6 +30,7 @@ import { ResultFieldsMappingConfigurationEditorModel } from '@app/ui/external-fe
|
||||||
import { MatCheckboxChange } from '@angular/material/checkbox';
|
import { MatCheckboxChange } from '@angular/material/checkbox';
|
||||||
import { ConfigurationService } from '@app/core/services/configuration/configuration.service';
|
import { ConfigurationService } from '@app/core/services/configuration/configuration.service';
|
||||||
import { LockService } from '@app/core/services/lock/lock.service';
|
import { LockService } from '@app/core/services/lock/lock.service';
|
||||||
|
import { Title } from '@angular/platform-browser';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-prefilling-source-editor-component',
|
selector: 'app-prefilling-source-editor-component',
|
||||||
|
@ -76,8 +77,15 @@ export class PrefillingSourceEditorComponent extends BaseEditor<PrefillingSource
|
||||||
private prefillingSourceService: PrefillingSourceService,
|
private prefillingSourceService: PrefillingSourceService,
|
||||||
private logger: LoggingService,
|
private logger: LoggingService,
|
||||||
private prefillingSourceEditorService: PrefillingSourceEditorService,
|
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);
|
super(dialog, language, formService, router, uiNotificationService, httpErrorHandlingService, filterService, datePipe, route, queryParamsService, lockService, authService, configurationService);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,9 @@ const routes: Routes = [
|
||||||
},
|
},
|
||||||
...BreadcrumbService.generateRouteDataConfiguration({
|
...BreadcrumbService.generateRouteDataConfiguration({
|
||||||
title: 'BREADCRUMBS.NEW-PREFILLING-SOURCE'
|
title: 'BREADCRUMBS.NEW-PREFILLING-SOURCE'
|
||||||
})
|
}),
|
||||||
|
getFromTitleService: true,
|
||||||
|
usePrefix: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -43,7 +45,9 @@ const routes: Routes = [
|
||||||
}),
|
}),
|
||||||
authContext: {
|
authContext: {
|
||||||
permissions: [AppPermission.EditPrefillingSource]
|
permissions: [AppPermission.EditPrefillingSource]
|
||||||
}
|
},
|
||||||
|
getFromTitleService: true,
|
||||||
|
usePrefix: false
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<div class="row reference-type-editor">
|
<div class="row reference-type-editor">
|
||||||
<div class="col-md-10 offset-md-1 colums-gapped">
|
<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">
|
<div class="col-md col-12">
|
||||||
<h3 *ngIf="isNew">{{'REFERENCE-TYPE-EDITOR.NEW' | translate}}</h3>
|
<h3 *ngIf="isNew">{{'REFERENCE-TYPE-EDITOR.NEW' | translate}}</h3>
|
||||||
|
<h3 *ngIf="!isNew">{{ formGroup?.get('name')?.value }}</h3>
|
||||||
<app-navigation-breadcrumb />
|
<app-navigation-breadcrumb />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -30,6 +30,7 @@ import { ReferenceTypeEditorResolver } from './reference-type-editor.resolver';
|
||||||
import { ReferenceTypeEditorService } from './reference-type-editor.service';
|
import { ReferenceTypeEditorService } from './reference-type-editor.service';
|
||||||
import { ConfigurationService } from '@app/core/services/configuration/configuration.service';
|
import { ConfigurationService } from '@app/core/services/configuration/configuration.service';
|
||||||
import { LockService } from '@app/core/services/lock/lock.service';
|
import { LockService } from '@app/core/services/lock/lock.service';
|
||||||
|
import { Title } from '@angular/platform-browser';
|
||||||
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
@ -88,8 +89,15 @@ export class ReferenceTypeEditorComponent extends BaseEditor<ReferenceTypeEditor
|
||||||
public enumUtils: EnumUtils,
|
public enumUtils: EnumUtils,
|
||||||
public referenceTypeService: ReferenceTypeService,
|
public referenceTypeService: ReferenceTypeService,
|
||||||
private logger: LoggingService,
|
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);
|
super(dialog, language, formService, router, uiNotificationService, httpErrorHandlingService, filterService, datePipe, route, queryParamsService, lockService, authService, configurationService);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,9 @@ const routes: Routes = [
|
||||||
},
|
},
|
||||||
...BreadcrumbService.generateRouteDataConfiguration({
|
...BreadcrumbService.generateRouteDataConfiguration({
|
||||||
title: 'BREADCRUMBS.NEW-REFERENCE-TYPE'
|
title: 'BREADCRUMBS.NEW-REFERENCE-TYPE'
|
||||||
})
|
}),
|
||||||
|
getFromTitleService: true,
|
||||||
|
usePrefix: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -44,7 +46,9 @@ const routes: Routes = [
|
||||||
}),
|
}),
|
||||||
authContext: {
|
authContext: {
|
||||||
permissions: [AppPermission.EditReferenceType]
|
permissions: [AppPermission.EditReferenceType]
|
||||||
}
|
},
|
||||||
|
getFromTitleService: true,
|
||||||
|
usePrefix: false
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
<div class="row align-items-center mt-4 mb-4" *ngIf="formGroup">
|
<div class="row align-items-center mt-4 mb-4" *ngIf="formGroup">
|
||||||
<div class="col-md col-12">
|
<div class="col-md col-12">
|
||||||
<h3 *ngIf="isNew && !isClone">{{'REFERENCE-EDITOR.NEW' | translate}}</h3>
|
<h3 *ngIf="isNew && !isClone">{{'REFERENCE-EDITOR.NEW' | translate}}</h3>
|
||||||
|
<h3 *ngIf="!isNew">{{ formGroup.get('label').value }}</h3>
|
||||||
<app-navigation-breadcrumb />
|
<app-navigation-breadcrumb />
|
||||||
</div>
|
</div>
|
||||||
<div class="col-auto">
|
<div class="col-auto">
|
||||||
|
|
|
@ -32,6 +32,7 @@ import { ReferenceEditorResolver } from './reference-editor.resolver';
|
||||||
import { ReferenceEditorService } from './reference-editor.service';
|
import { ReferenceEditorService } from './reference-editor.service';
|
||||||
import { LockService } from '@app/core/services/lock/lock.service';
|
import { LockService } from '@app/core/services/lock/lock.service';
|
||||||
import { ConfigurationService } from '@app/core/services/configuration/configuration.service';
|
import { ConfigurationService } from '@app/core/services/configuration/configuration.service';
|
||||||
|
import { Title } from '@angular/platform-browser';
|
||||||
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
@ -88,8 +89,16 @@ export class ReferenceEditorComponent extends BaseEditor<ReferenceEditorModel, R
|
||||||
private referenceEditorService: ReferenceEditorService,
|
private referenceEditorService: ReferenceEditorService,
|
||||||
private fileUtils: FileUtils,
|
private fileUtils: FileUtils,
|
||||||
private matomoService: MatomoService,
|
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);
|
super(dialog, language, formService, router, uiNotificationService, httpErrorHandlingService, filterService, datePipe, route, queryParamsService, lockService, authService, configurationService);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,10 @@ const routes: Routes = [
|
||||||
{
|
{
|
||||||
path: '',
|
path: '',
|
||||||
component: ReferenceListingComponent,
|
component: ReferenceListingComponent,
|
||||||
canActivate: [AuthGuard]
|
canActivate: [AuthGuard],
|
||||||
|
data: {
|
||||||
|
breadcrumb: true
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'new',
|
path: 'new',
|
||||||
|
@ -26,7 +29,9 @@ const routes: Routes = [
|
||||||
},
|
},
|
||||||
...BreadcrumbService.generateRouteDataConfiguration({
|
...BreadcrumbService.generateRouteDataConfiguration({
|
||||||
title: 'BREADCRUMBS.NEW-REFERENCE'
|
title: 'BREADCRUMBS.NEW-REFERENCE'
|
||||||
})
|
}),
|
||||||
|
getFromTitleService: true,
|
||||||
|
usePrefix: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -38,12 +43,15 @@ const routes: Routes = [
|
||||||
'entity': ReferenceEditorResolver
|
'entity': ReferenceEditorResolver
|
||||||
},
|
},
|
||||||
data: {
|
data: {
|
||||||
|
breadcrumb: true,
|
||||||
...BreadcrumbService.generateRouteDataConfiguration({
|
...BreadcrumbService.generateRouteDataConfiguration({
|
||||||
title: 'BREADCRUMBS.EDIT-REFERENCE'
|
title: 'BREADCRUMBS.EDIT-REFERENCE'
|
||||||
}),
|
}),
|
||||||
authContext: {
|
authContext: {
|
||||||
permissions: [AppPermission.EditReference]
|
permissions: [AppPermission.EditReference]
|
||||||
}
|
},
|
||||||
|
getFromTitleService: true,
|
||||||
|
usePrefix: false
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<div class="row">
|
<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="row align-items-center mb-4 mt-4" >
|
||||||
<div class="col-md col-12">
|
<div class="col-md col-12">
|
||||||
<h3>{{'TENANT-CONFIGURATION-EDITOR.TITLE' | translate}}</h3>
|
<h3>{{'TENANT-CONFIGURATION-EDITOR.TITLE' | translate}}</h3>
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
.tenant-configuration-component {
|
.tenant-configuration-component {
|
||||||
padding-top: 1em;
|
|
||||||
|
|
||||||
.configuration-container {
|
.configuration-container {
|
||||||
margin-top: 2em;
|
margin-top: 2em;
|
||||||
|
|
|
@ -90,6 +90,17 @@
|
||||||
"PLANS": "My Plans",
|
"PLANS": "My Plans",
|
||||||
"EXPLORE-PLANS": "Published Plans",
|
"EXPLORE-PLANS": "Published Plans",
|
||||||
"DESCRIPTIONS": "My Descriptions",
|
"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",
|
"EXPLORE": "Published Descriptions",
|
||||||
"USERS": "Users",
|
"USERS": "Users",
|
||||||
"PROFILE": "My Profile",
|
"PROFILE": "My Profile",
|
||||||
|
@ -368,7 +379,7 @@
|
||||||
"NEW-PROFILE-VERSION": "New Version Of ",
|
"NEW-PROFILE-VERSION": "New Version Of ",
|
||||||
"NEW-PROFILE-CLONE": "New Clone Of "
|
"NEW-PROFILE-CLONE": "New Clone Of "
|
||||||
},
|
},
|
||||||
"TITLE-EDIT-DESCRIPTION-TEMPLATE": "Edit Description Template",
|
"TITLE-EDIT-DESCRIPTION-TEMPLATE": "Editing Description Template",
|
||||||
"FIELDS": {
|
"FIELDS": {
|
||||||
"DATASET-TITLE": "Description Template Name",
|
"DATASET-TITLE": "Description Template Name",
|
||||||
"DATASET-DESCRIPTION": "Description"
|
"DATASET-DESCRIPTION": "Description"
|
||||||
|
@ -1063,6 +1074,7 @@
|
||||||
},
|
},
|
||||||
"LANGUAGE-EDITOR": {
|
"LANGUAGE-EDITOR": {
|
||||||
"NEW": "New Language",
|
"NEW": "New Language",
|
||||||
|
"TITLE-EDIT-LANGUAGE": "Editing Language",
|
||||||
"FIELDS": {
|
"FIELDS": {
|
||||||
"CODE": "Code",
|
"CODE": "Code",
|
||||||
"PAYLOAD": "Payload",
|
"PAYLOAD": "Payload",
|
||||||
|
@ -1131,6 +1143,7 @@
|
||||||
},
|
},
|
||||||
"NOTIFICATION-TEMPLATE-EDITOR": {
|
"NOTIFICATION-TEMPLATE-EDITOR": {
|
||||||
"NEW": "New Notification Template",
|
"NEW": "New Notification Template",
|
||||||
|
"TITLE-EDIT-NOTIFICATION-TEMPLATE": "Editing Notification Template",
|
||||||
"FIELDS": {
|
"FIELDS": {
|
||||||
"NOTIFICATION-TYPE": "Notification Type",
|
"NOTIFICATION-TYPE": "Notification Type",
|
||||||
"LANGUAGE": "Language",
|
"LANGUAGE": "Language",
|
||||||
|
@ -1244,6 +1257,7 @@
|
||||||
},
|
},
|
||||||
"DESCRIPTION-TEMPLATE-TYPE-EDITOR": {
|
"DESCRIPTION-TEMPLATE-TYPE-EDITOR": {
|
||||||
"NEW": "New Description Type",
|
"NEW": "New Description Type",
|
||||||
|
"TITLE-EDIT-DESCRIPTION-TEMPLATE-TYPE": "Editing Description Template Type",
|
||||||
"FIELDS": {
|
"FIELDS": {
|
||||||
"NAME": "Name"
|
"NAME": "Name"
|
||||||
},
|
},
|
||||||
|
@ -1264,6 +1278,7 @@
|
||||||
},
|
},
|
||||||
"REFERENCE-TYPE-EDITOR": {
|
"REFERENCE-TYPE-EDITOR": {
|
||||||
"NEW": "New Reference Type",
|
"NEW": "New Reference Type",
|
||||||
|
"TITLE-EDIT-REFERENCE-TYPE": "Editing Reference Type",
|
||||||
"SOURCES-REQUIRED": "Required",
|
"SOURCES-REQUIRED": "Required",
|
||||||
"FIELDS": {
|
"FIELDS": {
|
||||||
"SOURCE-CONFIGURATION": "Source Configuration",
|
"SOURCE-CONFIGURATION": "Source Configuration",
|
||||||
|
@ -1361,6 +1376,7 @@
|
||||||
},
|
},
|
||||||
"PREFILLING-SOURCE-EDITOR": {
|
"PREFILLING-SOURCE-EDITOR": {
|
||||||
"NEW": "New Prefilling Source",
|
"NEW": "New Prefilling Source",
|
||||||
|
"TITLE-EDIT-PREFILLING-SOURCE": "Editing Prefilling Source",
|
||||||
"FIELDS": {
|
"FIELDS": {
|
||||||
"FIXED-VALUE-FIELDS": "Fixed Value Fields",
|
"FIXED-VALUE-FIELDS": "Fixed Value Fields",
|
||||||
"FIELDS": "API Fields",
|
"FIELDS": "API Fields",
|
||||||
|
@ -1386,6 +1402,7 @@
|
||||||
},
|
},
|
||||||
"REFERENCE-EDITOR": {
|
"REFERENCE-EDITOR": {
|
||||||
"NEW": "New Reference",
|
"NEW": "New Reference",
|
||||||
|
"TITLE-EDIT-REFERENCE": "Editing Reference",
|
||||||
"FIELDS": {
|
"FIELDS": {
|
||||||
"LABEL": "Label",
|
"LABEL": "Label",
|
||||||
"TYPE": "Type",
|
"TYPE": "Type",
|
||||||
|
|
|
@ -36,6 +36,7 @@ import { NotificationTemplateKind } from '@notification-service/core/enum/notifi
|
||||||
import { NotificationType } from '@notification-service/core/enum/notification-type.enum';
|
import { NotificationType } from '@notification-service/core/enum/notification-type.enum';
|
||||||
import { EmailOverrideMode } from '@notification-service/core/enum/email-override-mode';
|
import { EmailOverrideMode } from '@notification-service/core/enum/email-override-mode';
|
||||||
import { NotificationDataType } from '@notification-service/core/enum/notification-data-type';
|
import { NotificationDataType } from '@notification-service/core/enum/notification-data-type';
|
||||||
|
import { Title } from '@angular/platform-browser';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-notification-template-editor',
|
selector: 'app-notification-template-editor',
|
||||||
|
@ -98,8 +99,15 @@ export class NotificationTemplateEditorComponent extends BaseEditor<Notification
|
||||||
private notificationTemplateService: NotificationTemplateService,
|
private notificationTemplateService: NotificationTemplateService,
|
||||||
private notificationTemplateEditorService: NotificationTemplateEditorService,
|
private notificationTemplateEditorService: NotificationTemplateEditorService,
|
||||||
private logger: LoggingService,
|
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);
|
super(dialog, language, formService, router, uiNotificationService, httpErrorHandlingService, filterService, datePipe, route, queryParamsService, lockService, authService, configurationService);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,9 @@ const routes: Routes = [
|
||||||
},
|
},
|
||||||
...BreadcrumbService.generateRouteDataConfiguration({
|
...BreadcrumbService.generateRouteDataConfiguration({
|
||||||
title: 'BREADCRUMBS.NEW-TENANT'
|
title: 'BREADCRUMBS.NEW-TENANT'
|
||||||
})
|
}),
|
||||||
|
getFromTitleService: true,
|
||||||
|
usePrefix: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -43,7 +45,9 @@ const routes: Routes = [
|
||||||
}),
|
}),
|
||||||
authContext: {
|
authContext: {
|
||||||
permissions: [AppPermission.EditNotificationTemplate]
|
permissions: [AppPermission.EditNotificationTemplate]
|
||||||
}
|
},
|
||||||
|
getFromTitleService: true,
|
||||||
|
usePrefix: false
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue