projects
/
evergreen-equinox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
LP1803787 Grid context retains selection; lint
[evergreen-equinox.git]
/
Open-ILS
/
src
/
eg2
/
src
/
app
/
share
/
grid
/
grid.ts
diff --git
a/Open-ILS/src/eg2/src/app/share/grid/grid.ts
b/Open-ILS/src/eg2/src/app/share/grid/grid.ts
index
ae61187
..
cfed24e
100644
(file)
--- a/
Open-ILS/src/eg2/src/app/share/grid/grid.ts
+++ b/
Open-ILS/src/eg2/src/app/share/grid/grid.ts
@@
-651,6
+651,13
@@
export class GridContext {
return selected;
}
+ rowIsSelected(row: any): boolean {
+ const index = this.getRowIndex(row);
+ return this.rowSelector.selected().filter(
+ idx => idx === index
+ ).length > 0;
+ }
+
getRowColumnValue(row: any, col: GridColumn): string {
let val;