From 81b13d43e81c000c311311d3aea635766679192a Mon Sep 17 00:00:00 2001 From: ddaribo Date: Wed, 30 Aug 2023 17:30:28 +0300 Subject: [PATCH] fix(grids): alter according to changed API --- .../grid-conditional-row-selectors-sample.component.html | 2 +- .../grid-conditional-row-selectors-sample.component.ts | 2 +- .../hierarchical-grid-conditional-row-selectors.component.html | 2 +- .../hierarchical-grid-conditional-row-selectors.component.ts | 2 +- .../tree-grid-conditional-row-selectors.component.html | 2 +- .../tree-grid-conditional-row-selectors.component.ts | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/app/grid/grid-conditional-row-selectors/grid-conditional-row-selectors-sample.component.html b/src/app/grid/grid-conditional-row-selectors/grid-conditional-row-selectors-sample.component.html index 133c3b6342..25b5713d56 100644 --- a/src/app/grid/grid-conditional-row-selectors/grid-conditional-row-selectors-sample.component.html +++ b/src/app/grid/grid-conditional-row-selectors/grid-conditional-row-selectors-sample.component.html @@ -10,7 +10,7 @@
diff --git a/src/app/grid/grid-conditional-row-selectors/grid-conditional-row-selectors-sample.component.ts b/src/app/grid/grid-conditional-row-selectors/grid-conditional-row-selectors-sample.component.ts index 32a232bc7c..53a5b0fab3 100644 --- a/src/app/grid/grid-conditional-row-selectors/grid-conditional-row-selectors-sample.component.ts +++ b/src/app/grid/grid-conditional-row-selectors/grid-conditional-row-selectors-sample.component.ts @@ -31,7 +31,7 @@ export class GridConditionalRowSelectorsComponent { const originalAddedLength = event.added.length; // update selection to contain only allowed rows - event.newSelection = event.newSelection.filter(x => this.isSelectionAllowed(x)); + event.newSelection = event.newSelection.filter(x => this.isSelectionAllowed(x.ID)); // cleanup selection if all conditionally selectable rows are already selected if (event.newSelection.length diff --git a/src/app/hierarchical-grid/hierarchical-grid-conditional-row-selectors/hierarchical-grid-conditional-row-selectors.component.html b/src/app/hierarchical-grid/hierarchical-grid-conditional-row-selectors/hierarchical-grid-conditional-row-selectors.component.html index 2b1133b007..2f13d20de6 100644 --- a/src/app/hierarchical-grid/hierarchical-grid-conditional-row-selectors/hierarchical-grid-conditional-row-selectors.component.html +++ b/src/app/hierarchical-grid/hierarchical-grid-conditional-row-selectors/hierarchical-grid-conditional-row-selectors.component.html @@ -30,7 +30,7 @@
diff --git a/src/app/hierarchical-grid/hierarchical-grid-conditional-row-selectors/hierarchical-grid-conditional-row-selectors.component.ts b/src/app/hierarchical-grid/hierarchical-grid-conditional-row-selectors/hierarchical-grid-conditional-row-selectors.component.ts index 0a5ebe1356..8094665d39 100644 --- a/src/app/hierarchical-grid/hierarchical-grid-conditional-row-selectors/hierarchical-grid-conditional-row-selectors.component.ts +++ b/src/app/hierarchical-grid/hierarchical-grid-conditional-row-selectors/hierarchical-grid-conditional-row-selectors.component.ts @@ -30,7 +30,7 @@ export class HGridConditionalRowSelectorsComponent implements OnInit { const originalAddedLength = event.added.length; // update selection to contain only allowed rows - event.newSelection = event.newSelection.filter(x => this.isSelectionAllowed(x)); + event.newSelection = event.newSelection.filter(x => this.isSelectionAllowed(x.Artist)); // cleanup selection if all conditionally selectable rows are already selected if (event.newSelection.length diff --git a/src/app/tree-grid/tree-grid-conditional-row-selectors/tree-grid-conditional-row-selectors.component.html b/src/app/tree-grid/tree-grid-conditional-row-selectors/tree-grid-conditional-row-selectors.component.html index a4ecb6d0fc..2bf788f57f 100644 --- a/src/app/tree-grid/tree-grid-conditional-row-selectors/tree-grid-conditional-row-selectors.component.html +++ b/src/app/tree-grid/tree-grid-conditional-row-selectors/tree-grid-conditional-row-selectors.component.html @@ -11,7 +11,7 @@
diff --git a/src/app/tree-grid/tree-grid-conditional-row-selectors/tree-grid-conditional-row-selectors.component.ts b/src/app/tree-grid/tree-grid-conditional-row-selectors/tree-grid-conditional-row-selectors.component.ts index a08f22b4c6..75d4dfd8fa 100644 --- a/src/app/tree-grid/tree-grid-conditional-row-selectors/tree-grid-conditional-row-selectors.component.ts +++ b/src/app/tree-grid/tree-grid-conditional-row-selectors/tree-grid-conditional-row-selectors.component.ts @@ -29,7 +29,7 @@ export class TreeGridConditionalRowSelectorsSampleComponent implements OnInit { const originalAddedLength = event.added.length; // update selection to contain only allowed rows - event.newSelection = event.newSelection.filter(x => this.isSelectionAllowed(x)); + event.newSelection = event.newSelection.filter(x => this.isSelectionAllowed(x.ID)); // cleanup selection if all conditionally selectable rows are already selected if (event.newSelection.length