From: Galen Charlton Date: Tue, 14 Dec 2021 15:23:38 +0000 (-0500) Subject: LP#1942220: start defining actions on LI search results page X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=5c37f96dc376af93a0c67ef8cf50b5b400fe7330;p=working%2FEvergreen.git LP#1942220: start defining actions on LI search results page Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/src/eg2/src/app/staff/acq/search/lineitem-results.component.html b/Open-ILS/src/eg2/src/app/staff/acq/search/lineitem-results.component.html index f902df8b0e..f980421a40 100644 --- a/Open-ILS/src/eg2/src/app/staff/acq/search/lineitem-results.component.html +++ b/Open-ILS/src/eg2/src/app/staff/acq/search/lineitem-results.component.html @@ -100,6 +100,46 @@ (onRowActivate)="showRow($event)" [showDeclaredFieldsOnly]="true"> + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Open-ILS/src/eg2/src/app/staff/acq/search/lineitem-results.component.ts b/Open-ILS/src/eg2/src/app/staff/acq/search/lineitem-results.component.ts index 4e91b8eb04..bf5f98306d 100644 --- a/Open-ILS/src/eg2/src/app/staff/acq/search/lineitem-results.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/acq/search/lineitem-results.component.ts @@ -23,6 +23,8 @@ export class LineitemResultsComponent implements OnInit { @ViewChild('acqSearchForm', { static: true}) acqSearchForm: AcqSearchFormComponent; @ViewChild('acqSearchLineitemsGrid', { static: true }) lineitemResultsGrid: GridComponent; + noSelectedRows: (rows: IdlObject[]) => boolean; + cellTextGenerator: GridCellTextGenerator; constructor( @@ -35,6 +37,7 @@ export class LineitemResultsComponent implements OnInit { ngOnInit() { this.gridSource = this.acqSearch.getAcqSearchDataSource('lineitem'); + this.noSelectedRows = (rows: IdlObject[]) => (rows.length === 0); this.cellTextGenerator = { id: row => row.id(), title: row => {