From b274665e2103b216407c25b7d59df993d44c6bdf Mon Sep 17 00:00:00 2001
From: shamoon <4887959+shamoon@users.noreply.github.com>
Date: Thu, 6 Feb 2025 23:24:23 -0800
Subject: [PATCH] Tweak: add name to management toasts
---
src-ui/messages.xlf | 4 ++--
.../manage/management-list/management-list.component.ts | 7 +++----
2 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/src-ui/messages.xlf b/src-ui/messages.xlf
index b0d6025c7..1072e89c6 100644
--- a/src-ui/messages.xlf
+++ b/src-ui/messages.xlf
@@ -8528,8 +8528,8 @@
183
-
- Successfully updated .
+
+ Successfully updated "".
src/app/components/manage/management-list/management-list.component.ts
198
diff --git a/src-ui/src/app/components/manage/management-list/management-list.component.ts b/src-ui/src/app/components/manage/management-list/management-list.component.ts
index ecb3e2519..7f7721485 100644
--- a/src-ui/src/app/components/manage/management-list/management-list.component.ts
+++ b/src-ui/src/app/components/manage/management-list/management-list.component.ts
@@ -21,7 +21,6 @@ import {
MATCHING_ALGORITHMS,
MatchingModel,
} from 'src/app/data/matching-model'
-import { ObjectWithId } from 'src/app/data/object-with-id'
import { ObjectWithPermissions } from 'src/app/data/object-with-permissions'
import {
SortableDirective,
@@ -56,7 +55,7 @@ export interface ManagementListColumn {
}
@Directive()
-export abstract class ManagementListComponent
+export abstract class ManagementListComponent
extends LoadingComponentWithPermissions
implements OnInit, OnDestroy
{
@@ -195,7 +194,7 @@ export abstract class ManagementListComponent
activeModal.componentInstance.succeeded.subscribe(() => {
this.reloadData()
this.toastService.showInfo(
- $localize`Successfully updated ${this.typeName}.`
+ $localize`Successfully updated ${this.typeName} "${object.name}".`
)
})
activeModal.componentInstance.failed.subscribe((e) => {
@@ -208,7 +207,7 @@ export abstract class ManagementListComponent
abstract getDeleteMessage(object: T)
- filterDocuments(object: ObjectWithId) {
+ filterDocuments(object: MatchingModel) {
this.documentListViewService.quickFilter([
{ rule_type: this.filterRuleType, value: object.id.toString() },
])