From 2874124bdf5ebbbeca1323967e8d22ad3cbddcc5 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Fri, 4 Jun 2021 10:07:40 -0400 Subject: [PATCH] LP#1901893: (follow-up) add cellTextGenerator Signed-off-by: Galen Charlton --- .../src/eg2/src/app/staff/admin/local/admin-carousel.component.html | 1 + .../src/eg2/src/app/staff/admin/local/admin-carousel.component.ts | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/eg2/src/app/staff/admin/local/admin-carousel.component.html b/Open-ILS/src/eg2/src/app/staff/admin/local/admin-carousel.component.html index fde0f1e277..45867e9103 100644 --- a/Open-ILS/src/eg2/src/app/staff/admin/local/admin-carousel.component.html +++ b/Open-ILS/src/eg2/src/app/staff/admin/local/admin-carousel.component.html @@ -42,6 +42,7 @@ 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 2de2d8ea27..f48f3ef2bc 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 @@ -10,6 +10,7 @@ import {OrgService} from '@eg/core/org.service'; import {PermService} from '@eg/core/perm.service'; import {AuthService} from '@eg/core/auth.service'; import {NetService} from '@eg/core/net.service'; +import {GridCellTextGenerator} from '@eg/share/grid/grid'; import {StringComponent} from '@eg/share/string/string.component'; import {FmRecordEditorComponent} from '@eg/share/fm-editor/fm-editor.component'; @@ -25,6 +26,7 @@ export class AdminCarouselComponent extends AdminPageComponent implements OnInit refreshSelected: (idlThings: IdlObject[]) => void; createNew: () => void; deleteSelected: (idlThings: IdlObject[]) => void; + cellTextGenerator: GridCellTextGenerator; @ViewChild('refreshString', { static: true }) refreshString: StringComponent; @ViewChild('refreshErrString', { static: true }) refreshErrString: StringComponent; @@ -49,7 +51,9 @@ export class AdminCarouselComponent extends AdminPageComponent implements OnInit this.classLabel = this.idlClassDef.label; this.includeOrgDescendants = true; - + this.cellTextGenerator = { + bucket: row => row.bucket().name() + }; this.createNew = () => { super.createNew(); -- 2.11.0