From: Terran McCanna Date: Tue, 27 Oct 2020 22:39:09 +0000 (-0400) Subject: LP1879769 Cannot Edit Carousels from Action Menu X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=04438a0a69f2e49334269cb5ea9d5a6d62decd4b;p=working%2FEvergreen.git 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 --- 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) {