From 0f4e1fd94542df5be3cf3f23be089cb0e9423bee Mon Sep 17 00:00:00 2001 From: Aleksander Sklorz Date: Wed, 4 Oct 2023 15:10:05 +0200 Subject: [PATCH] ACS-5949 Renamed function --- .../library-metadata-tab/library-metadata-form.component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/projects/aca-content/src/lib/components/info-drawer/library-metadata-tab/library-metadata-form.component.ts b/projects/aca-content/src/lib/components/info-drawer/library-metadata-tab/library-metadata-form.component.ts index d897b9f5a2..0f14836eae 100644 --- a/projects/aca-content/src/lib/components/info-drawer/library-metadata-tab/library-metadata-form.component.ts +++ b/projects/aca-content/src/lib/components/info-drawer/library-metadata-tab/library-metadata-form.component.ts @@ -146,10 +146,10 @@ export class LibraryMetadataFormComponent implements OnInit, OnChanges, OnDestro }); this.canUpdateLibrary = this.node?.entry?.role === 'SiteManager'; this.visibilityLabel = this.libraryType.find((type) => type.value === this.form.controls['visibility'].value).label; - this.handleUpdatingEvents(SnackbarActionTypes.Info, 'LIBRARY.SUCCESS.LIBRARY_UPDATED', () => + this.handleUpdatingEvent(SnackbarActionTypes.Info, 'LIBRARY.SUCCESS.LIBRARY_UPDATED', () => Object.assign(this.node.entry, this.form.value) ); - this.handleUpdatingEvents(SnackbarActionTypes.Error, 'LIBRARY.ERRORS.LIBRARY_UPDATE_ERROR', () => this.form.markAsDirty()); + this.handleUpdatingEvent(SnackbarActionTypes.Error, 'LIBRARY.ERRORS.LIBRARY_UPDATE_ERROR', () => this.form.markAsDirty()); } ngOnDestroy() { @@ -190,7 +190,7 @@ export class LibraryMetadataFormComponent implements OnInit, OnChanges, OnDestro ); } - private handleUpdatingEvents(actionType: SnackbarActionTypes, payload: string, handle: () => void): void { + private handleUpdatingEvent(actionType: SnackbarActionTypes, payload: string, handle: () => void): void { this.actions$ .pipe( ofType(actionType),