From 6007b252d74962a5748976bdb90a2cd81af52714 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Sat, 11 Jan 2025 22:25:12 -0800 Subject: [PATCH] Fix: missing icon import, fix bulk edit cf messages --- src-ui/messages.xlf | 51 ++++++++++--------- .../workflow-edit-dialog.component.ts | 2 + .../bulk-editor/bulk-editor.component.ts | 6 +-- 3 files changed, 31 insertions(+), 28 deletions(-) diff --git a/src-ui/messages.xlf b/src-ui/messages.xlf index 7bd66e6e3..531a90fe0 100644 --- a/src-ui/messages.xlf +++ b/src-ui/messages.xlf @@ -1704,7 +1704,7 @@ src/app/components/common/edit-dialog/workflow-edit-dialog/workflow-edit-dialog.component.ts - 82 + 83 src/app/components/document-list/document-list.component.html @@ -3431,7 +3431,7 @@ src/app/components/common/edit-dialog/workflow-edit-dialog/workflow-edit-dialog.component.ts - 78 + 79 src/app/components/document-list/document-list.component.html @@ -4238,7 +4238,7 @@ src/app/components/common/edit-dialog/workflow-edit-dialog/workflow-edit-dialog.component.ts - 124 + 125 src/app/components/common/profile-edit-dialog/profile-edit-dialog.component.html @@ -4810,28 +4810,28 @@ Consume Folder src/app/components/common/edit-dialog/workflow-edit-dialog/workflow-edit-dialog.component.ts - 63 + 64 API Upload src/app/components/common/edit-dialog/workflow-edit-dialog/workflow-edit-dialog.component.ts - 67 + 68 Mail Fetch src/app/components/common/edit-dialog/workflow-edit-dialog/workflow-edit-dialog.component.ts - 71 + 72 Modified src/app/components/common/edit-dialog/workflow-edit-dialog/workflow-edit-dialog.component.ts - 86 + 87 src/app/data/document.ts @@ -4842,70 +4842,70 @@ Custom Field src/app/components/common/edit-dialog/workflow-edit-dialog/workflow-edit-dialog.component.ts - 90 + 91 Consumption Started src/app/components/common/edit-dialog/workflow-edit-dialog/workflow-edit-dialog.component.ts - 97 + 98 Document Added src/app/components/common/edit-dialog/workflow-edit-dialog/workflow-edit-dialog.component.ts - 101 + 102 Document Updated src/app/components/common/edit-dialog/workflow-edit-dialog/workflow-edit-dialog.component.ts - 105 + 106 Scheduled src/app/components/common/edit-dialog/workflow-edit-dialog/workflow-edit-dialog.component.ts - 109 + 110 Assignment src/app/components/common/edit-dialog/workflow-edit-dialog/workflow-edit-dialog.component.ts - 116 + 117 Removal src/app/components/common/edit-dialog/workflow-edit-dialog/workflow-edit-dialog.component.ts - 120 + 121 Webhook src/app/components/common/edit-dialog/workflow-edit-dialog/workflow-edit-dialog.component.ts - 128 + 129 Create new workflow src/app/components/common/edit-dialog/workflow-edit-dialog/workflow-edit-dialog.component.ts - 223 + 225 Edit workflow src/app/components/common/edit-dialog/workflow-edit-dialog/workflow-edit-dialog.component.ts - 227 + 229 @@ -6907,10 +6907,6 @@ src/app/components/document-list/bulk-editor/bulk-editor.component.ts 285 - - src/app/components/document-list/bulk-editor/bulk-editor.component.ts - 893 - "" @@ -7151,11 +7147,18 @@ 860 - - Bulk operation executed successfully + + Custom fields updated. src/app/components/document-list/bulk-editor/bulk-editor.component.ts - 883 + 882 + + + + Error updating custom fields. + + src/app/components/document-list/bulk-editor/bulk-editor.component.ts + 891 diff --git a/src-ui/src/app/components/common/edit-dialog/workflow-edit-dialog/workflow-edit-dialog.component.ts b/src-ui/src/app/components/common/edit-dialog/workflow-edit-dialog/workflow-edit-dialog.component.ts index 130529c03..3abdee09a 100644 --- a/src-ui/src/app/components/common/edit-dialog/workflow-edit-dialog/workflow-edit-dialog.component.ts +++ b/src-ui/src/app/components/common/edit-dialog/workflow-edit-dialog/workflow-edit-dialog.component.ts @@ -13,6 +13,7 @@ import { ReactiveFormsModule, } from '@angular/forms' import { NgbAccordionModule, NgbActiveModal } from '@ng-bootstrap/ng-bootstrap' +import { NgxBootstrapIconsModule } from 'ngx-bootstrap-icons' import { first } from 'rxjs' import { Correspondent } from 'src/app/data/correspondent' import { CustomField, CustomFieldDataType } from 'src/app/data/custom-field' @@ -154,6 +155,7 @@ const TRIGGER_MATCHING_ALGORITHMS = MATCHING_ALGORITHMS.filter( NgbAccordionModule, NgTemplateOutlet, DragDropModule, + NgxBootstrapIconsModule, ], }) export class WorkflowEditDialogComponent diff --git a/src-ui/src/app/components/document-list/bulk-editor/bulk-editor.component.ts b/src-ui/src/app/components/document-list/bulk-editor/bulk-editor.component.ts index bc7492bc5..5750c4b2f 100644 --- a/src-ui/src/app/components/document-list/bulk-editor/bulk-editor.component.ts +++ b/src-ui/src/app/components/document-list/bulk-editor/bulk-editor.component.ts @@ -879,9 +879,7 @@ export class BulkEditorComponent dialog.documents = Array.from(this.list.selected) dialog.succeeded.subscribe((result) => { - this.toastService.showInfo( - $localize`Bulk operation executed successfully` - ) + this.toastService.showInfo($localize`Custom fields updated.`) this.list.reload() this.list.reduceSelectionToFilter() this.list.selected.forEach((id) => { @@ -890,7 +888,7 @@ export class BulkEditorComponent }) dialog.failed.subscribe((error) => { this.toastService.showError( - $localize`Error executing bulk operation`, + $localize`Error updating custom fields.`, error ) })