From 04438a0a69f2e49334269cb5ea9d5a6d62decd4b Mon Sep 17 00:00:00 2001 From: Terran McCanna Date: Tue, 27 Oct 2020 18:39:09 -0400 Subject: [PATCH] LP1879769 Cannot Edit Carousels from Action Menu The Edit Carousels action was appearing in the action menu and right-click menu, but wasn't wired up. This adds in the missing piece. Signed-off-by: Terran McCanna Signed-off-by: Gina Monti Signed-off-by: Galen Charlton --- .../staff/admin/local/admin-carousel.component.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Open-ILS/src/eg2/src/app/staff/admin/local/admin-carousel.component.ts b/Open-ILS/src/eg2/src/app/staff/admin/local/admin-carousel.component.ts index 3d048d6a6b..2de2d8ea27 100644 --- a/Open-ILS/src/eg2/src/app/staff/admin/local/admin-carousel.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/admin/local/admin-carousel.component.ts @@ -11,6 +11,7 @@ import {PermService} from '@eg/core/perm.service'; import {AuthService} from '@eg/core/auth.service'; import {NetService} from '@eg/core/net.service'; import {StringComponent} from '@eg/share/string/string.component'; +import {FmRecordEditorComponent} from '@eg/share/fm-editor/fm-editor.component'; @Component({ templateUrl: './admin-carousel.component.html' @@ -72,6 +73,18 @@ export class AdminCarouselComponent extends AdminPageComponent implements OnInit } }); }; + + this.editSelected = (carouselFields: IdlObject[]) => { + // Edit each IDL thing one at a time + const editOneThing = (carousel: IdlObject) => { + if (!carousel) { return; } + + this.showEditDialog(carousel).then( + () => editOneThing(carouselFields.shift())); + }; + + editOneThing(carouselFields.shift()); + }; } mungeCarousel(editMode: string, rec: IdlObject) { -- 2.43.2