From f74cd9233d07a2ec6a457eba4e7ca1de7a012b46 Mon Sep 17 00:00:00 2001 From: "CITE\\amentis" Date: Fri, 6 Sep 2024 13:02:47 +0300 Subject: [PATCH] add belongs to current tenant logic to notification, notification template, annotation status ui pages --- .../ui/admin/status/editor/status-editor.resolver.ts | 3 ++- .../ui/admin/status/listing/status-listing.component.html | 2 +- .../ui/admin/status/listing/status-listing.component.ts | 8 +++++--- .../editor/notification-template-editor.component.html | 4 ++-- .../editor/notification-template-editor.resolver.ts | 3 ++- .../listing/notification-template-listing.component.ts | 7 ++++--- .../admin/notification/notification-listing.component.ts | 5 +++-- 7 files changed, 19 insertions(+), 13 deletions(-) diff --git a/frontend/src/annotation-service/ui/admin/status/editor/status-editor.resolver.ts b/frontend/src/annotation-service/ui/admin/status/editor/status-editor.resolver.ts index 54f9a1077..5f51c3246 100644 --- a/frontend/src/annotation-service/ui/admin/status/editor/status-editor.resolver.ts +++ b/frontend/src/annotation-service/ui/admin/status/editor/status-editor.resolver.ts @@ -24,7 +24,8 @@ export class StatusEditorResolver extends BaseEditorResolver { nameof(x => x.createdAt), nameof(x => x.updatedAt), nameof(x => x.hash), - nameof(x => x.isActive) + nameof(x => x.isActive), + nameof(x => x.belongsToCurrentTenant) ] } diff --git a/frontend/src/annotation-service/ui/admin/status/listing/status-listing.component.html b/frontend/src/annotation-service/ui/admin/status/listing/status-listing.component.html index 461d1d23d..0bf104f53 100644 --- a/frontend/src/annotation-service/ui/admin/status/listing/status-listing.component.html +++ b/frontend/src/annotation-service/ui/admin/status/listing/status-listing.component.html @@ -74,7 +74,7 @@ -
+
@@ -176,7 +176,7 @@

{{'NOTIFICATION-SERVICE.NOTIFICATION-TEMPLATE-EDITOR.FIELDS.BODY-FIELD-OPTIONS' | translate}} - +

diff --git a/frontend/src/notification-service/ui/admin/notification-template/editor/notification-template-editor.resolver.ts b/frontend/src/notification-service/ui/admin/notification-template/editor/notification-template-editor.resolver.ts index 793dc9906..310dfd034 100644 --- a/frontend/src/notification-service/ui/admin/notification-template/editor/notification-template-editor.resolver.ts +++ b/frontend/src/notification-service/ui/admin/notification-template/editor/notification-template-editor.resolver.ts @@ -53,7 +53,8 @@ export class NotificationTemplateEditorResolver extends BaseEditorResolver { nameof(x => x.createdAt), nameof(x => x.updatedAt), nameof(x => x.hash), - nameof(x => x.isActive) + nameof(x => x.isActive), + nameof(x => x.belongsToCurrentTenant) ] } diff --git a/frontend/src/notification-service/ui/admin/notification-template/listing/notification-template-listing.component.ts b/frontend/src/notification-service/ui/admin/notification-template/listing/notification-template-listing.component.ts index 70e4c3eb8..d2ea2522f 100644 --- a/frontend/src/notification-service/ui/admin/notification-template/listing/notification-template-listing.component.ts +++ b/frontend/src/notification-service/ui/admin/notification-template/listing/notification-template-listing.component.ts @@ -49,7 +49,8 @@ export class NotificationTemplateListingComponent extends BaseListingComponent(x => x.updatedAt), nameof(x => x.createdAt), nameof(x => x.hash), - nameof(x => x.isActive) + nameof(x => x.isActive), + nameof(x => x.belongsToCurrentTenant) ]; rowIdentity = x => x.id; @@ -79,11 +80,11 @@ export class NotificationTemplateListingComponent extends BaseListingComponent(x => x.createdAt), nameof(x => x.updatedAt), nameof(x => x.hash), - nameof(x => x.isActive) + nameof(x => x.isActive), + nameof(x => x.belongsToCurrentTenant) ]; rowIdentity = x => x.id; @@ -85,7 +86,7 @@ export class NotificationListingComponent extends BaseListingComponent