From 854a513c0108a71e55fdc2a14b7fdf4317413315 Mon Sep 17 00:00:00 2001 From: Sofia Papacharalampous Date: Thu, 13 Jun 2024 11:16:53 +0300 Subject: [PATCH] fixes on tenant urls --- .../editor/description-template-editor.component.ts | 12 +++++++----- .../description-template-listing.component.ts | 2 +- .../description-template-type-listing.component.ts | 2 +- .../listing/dmp-blueprint-listing.component.ts | 2 +- .../ui/admin/entity-locks/lock-listing.component.ts | 4 +++- .../language/listing/language-listing.component.ts | 2 +- .../listing/prefilling-source-listing.component.ts | 2 +- .../listing/reference-type-listing.component.ts | 2 +- .../reference/listing/reference-listing.component.ts | 2 +- .../admin/tenant/listing/tenant-listing.component.ts | 2 +- .../ui/admin/user/listing/user-listing.component.ts | 4 +++- .../src/common/base/base-listing-component.ts | 4 +++- .../notification-template-listing.component.ts | 2 +- .../notification/notification-listing.component.ts | 4 +++- .../mine-inapp-notification-listing.component.ts | 4 +++- 15 files changed, 31 insertions(+), 19 deletions(-) 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 7ab8b30bb..4681157a1 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 @@ -43,6 +43,7 @@ import { DescriptionTemplateEditorModel, DescriptionTemplateFieldEditorModel, De import { DescriptionTemplateEditorResolver } from './description-template-editor.resolver'; import { DescriptionTemplateEditorService } from './description-template-editor.service'; import { NewEntryType, ToCEntry, ToCEntryType } from './table-of-contents/description-template-table-of-contents-entry'; +import { RouterUtilsService } from '@app/core/services/router/router-utils.service'; @Component({ @@ -138,7 +139,8 @@ export class DescriptionTemplateEditorComponent extends BaseEditor constructor( protected router: Router, + protected routerUtils: RouterUtilsService, protected route: ActivatedRoute, protected uiNotificationService: UiNotificationService, protected httpErrorHandlingService: HttpErrorHandlingService, @@ -62,7 +64,7 @@ export class LockListingComponent extends BaseListingComponent private language: TranslateService, private dialog: MatDialog ) { - super(router, route, uiNotificationService, httpErrorHandlingService, queryParamsService); + super(router, routerUtils, route, uiNotificationService, httpErrorHandlingService, queryParamsService); // Lookup setup // Default lookup values are defined in the user settings class. this.lookup = this.initializeLookup(); diff --git a/dmp-frontend/src/app/ui/admin/language/listing/language-listing.component.ts b/dmp-frontend/src/app/ui/admin/language/listing/language-listing.component.ts index 250beb84d..0df3fdbc8 100644 --- a/dmp-frontend/src/app/ui/admin/language/listing/language-listing.component.ts +++ b/dmp-frontend/src/app/ui/admin/language/listing/language-listing.component.ts @@ -63,7 +63,7 @@ export class LanguageListingComponent extends BaseListingComponent constructor( protected router: Router, + protected routerUtils: RouterUtilsService, protected route: ActivatedRoute, protected uiNotificationService: UiNotificationService, protected httpErrorHandlingService: HttpErrorHandlingService, @@ -72,7 +74,7 @@ export class UserListingComponent extends BaseListingComponent private dialog: MatDialog, private fileUtils: FileUtils ) { - super(router, route, uiNotificationService, httpErrorHandlingService, queryParamsService); + super(router, routerUtils, route, uiNotificationService, httpErrorHandlingService, queryParamsService); // Lookup setup // Default lookup values are defined in the user settings class. this.lookup = this.initializeLookup(); diff --git a/dmp-frontend/src/common/base/base-listing-component.ts b/dmp-frontend/src/common/base/base-listing-component.ts index d1a69835e..8f83b879c 100644 --- a/dmp-frontend/src/common/base/base-listing-component.ts +++ b/dmp-frontend/src/common/base/base-listing-component.ts @@ -3,6 +3,7 @@ import { Component, OnInit, ViewChild } from '@angular/core'; import { ActivatedRoute, ParamMap, Router } from '@angular/router'; import { UserSettingsKey } from '@app/core/model/user-settings/user-settings.model'; import { SnackBarNotificationLevel, UiNotificationService } from '@app/core/services/notification/ui-notification-service'; +import { RouterUtilsService } from '@app/core/services/router/router-utils.service'; import { QueryParamsService } from '@app/core/services/utilities/query-params.service'; import { BaseComponent } from '@common/base/base.component'; import { Lookup } from '@common/model/lookup'; @@ -60,6 +61,7 @@ export abstract class BaseListingComponent