From bddededbc41afddb25f915a8b80932dce3ac16f5 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Wed, 26 Feb 2025 00:00:49 -0800 Subject: [PATCH] Frontend reload saved views on cf deletion --- .../manage/custom-fields/custom-fields.component.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src-ui/src/app/components/manage/custom-fields/custom-fields.component.ts b/src-ui/src/app/components/manage/custom-fields/custom-fields.component.ts index a431453d4..b4fd9738d 100644 --- a/src-ui/src/app/components/manage/custom-fields/custom-fields.component.ts +++ b/src-ui/src/app/components/manage/custom-fields/custom-fields.component.ts @@ -17,6 +17,7 @@ import { DocumentListViewService } from 'src/app/services/document-list-view.ser import { PermissionsService } from 'src/app/services/permissions.service' import { CustomFieldsService } from 'src/app/services/rest/custom-fields.service' import { DocumentService } from 'src/app/services/rest/document.service' +import { SavedViewService } from 'src/app/services/rest/saved-view.service' import { SettingsService } from 'src/app/services/settings.service' import { ToastService } from 'src/app/services/toast.service' import { ConfirmDialogComponent } from '../../common/confirm-dialog/confirm-dialog.component' @@ -50,7 +51,8 @@ export class CustomFieldsComponent private toastService: ToastService, private documentListViewService: DocumentListViewService, private settingsService: SettingsService, - private documentService: DocumentService + private documentService: DocumentService, + private savedViewService: SavedViewService ) { super() } @@ -115,6 +117,7 @@ export class CustomFieldsComponent this.customFieldsService.clearCache() this.settingsService.initializeDisplayFields() this.documentService.reload() + this.savedViewService.reload() this.reload() }, error: (e) => {