Klaster1 commented on a change in pull request #6275: IGNITE-9981. Web Console: 
Advanced footer for grid.
URL: https://github.com/apache/ignite/pull/6275#discussion_r273319757
 
 

 ##########
 File path: 
modules/web-console/frontend/app/components/grid-showing-rows/controller.js
 ##########
 @@ -39,9 +42,49 @@ export default class {
     applyValues() {
         if (!this.gridApi.grid.rows.length) {
             this.count = 0;
+            this.visible = 0;
+            this.selected = 0;
+            return;
+        }
+
+        this.count = this.gridApi.grid.rows.length;
+        this.visible = _.sumBy(this.gridApi.grid.rows, (row) => 
Number(row.visible));
+        this.selected = this.gridApi.selection.getSelectedCount();
 
 Review comment:
   This way selected status will update only when data changes and not when 
user changes selection.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to