From 92794828607787001627bf6cdce0b7023747d0a8 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Tue, 25 Jun 2019 10:44:57 -0400 Subject: [PATCH] LP1832148 Clear selection for deleted grid rows Ignore rows which are no longer present in the grid when displaying the "X selected" rows label along the top of the Angular grid. Additionally, teach the grid to clear selected indexes for rows that are no longer present for a bit of low-impact release of memory. Signed-off-by: Bill Erickson --- .../src/eg2/src/app/share/grid/grid-toolbar.component.html | 2 +- Open-ILS/src/eg2/src/app/share/grid/grid.ts | 13 ++++++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/Open-ILS/src/eg2/src/app/share/grid/grid-toolbar.component.html b/Open-ILS/src/eg2/src/app/share/grid/grid-toolbar.component.html index 6be92080a3..989332f242 100644 --- a/Open-ILS/src/eg2/src/app/share/grid/grid-toolbar.component.html +++ b/Open-ILS/src/eg2/src/app/share/grid/grid-toolbar.component.html @@ -30,7 +30,7 @@
- {{gridContext.rowSelector.selected().length}} selected + {{gridContext.getSelectedRows().length}} selected