From 0db57c033a40f8399ffd16901e6e811c87ebfe5b 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 Signed-off-by: Jane Sandberg --- .../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 be7b19cb7e..d75ef88b60 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