Parcourir la source

Merge pull request #12573 from GordonSmith/HPCC-22171

HPCC-22171 ECLWatch reset lists to page 0 on filter

Reviewed-By: Miguel Vazquez <miguel.vazquez@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman il y a 6 ans
Parent
commit
105d65c0eb

+ 1 - 0
esp/src/eclwatch/DFUQueryWidget.js

@@ -452,6 +452,7 @@ define([
                 });
                 this.filter.on("apply", function (evt) {
                     context.refreshHRef();
+                    context.workunitsGrid._currentPage = 0;
                     context.refreshGrid();
                 });
                 topic.subscribe("hpcc/dfu_wu_completed", function (topic) {

+ 1 - 0
esp/src/eclwatch/DiskUsageWidget.js

@@ -71,6 +71,7 @@ define([
                 });
                 this.filter.on("apply", function (evt) {
                     context.refreshHRef();
+                    context.diskUsageGrid._currentPage = 0;
                     context.refreshGrid();
                 });
                 this.refreshGrid();

+ 1 - 0
esp/src/eclwatch/EventScheduleWorkunitWidget.js

@@ -80,6 +80,7 @@ define([
                 });
                 this.filter.on("apply", function (evt) {
                     context.refreshHRef();
+                    context.eventGrid._currentPage = 0;
                     context.refreshGrid();
                 });
             },

+ 1 - 0
esp/src/eclwatch/GetDFUWorkunitsWidget.js

@@ -241,6 +241,7 @@ define([
                 });
                 this.filter.on("apply", function (evt) {
                     context.refreshHRef();
+                    context.workunitsGrid._currentPage = 0;
                     context.refreshGrid();
                 });
                 topic.subscribe("hpcc/dfu_wu_created", function (topic) {

+ 1 - 0
esp/src/eclwatch/LZBrowseWidget.js

@@ -546,6 +546,7 @@ define([
                 this.filter.on("apply", function (evt) {
                     context.landingZonesGrid.clearSelection();
                     context.refreshHRef();
+                    context.landingZonesGrid._currentPage = 0;
                     context.refreshGrid();
                 });
                 this.sprayFixedDestinationSelect.init({

+ 1 - 0
esp/src/eclwatch/LogWidget.js

@@ -79,6 +79,7 @@ define([
             });
             this.filter.on("apply", function (evt) {
                 context.refreshHRef();
+                context.logGrid._currentPage = 0;
                 context.refreshGrid();
             });
             this.rawText = registry.byId(this.id + "LogText");

+ 1 - 0
esp/src/eclwatch/PackageMapQueryWidget.js

@@ -262,6 +262,7 @@ define([
                 });
                 this.filter.on("apply", function (evt) {
                     context.refreshHRef();
+                    context.packagesGrid._currentPage = 0;
                     context.refreshGrid();
                 });
                 this.initPackagesGrid();

+ 1 - 0
esp/src/eclwatch/QuerySetQueryWidget.js

@@ -164,6 +164,7 @@ define([
                 });
                 this.filter.on("apply", function (evt) {
                     context.refreshHRef();
+                    context.querySetGrid._currentPage = 0;
                     context.refreshGrid();
                 });
                 topic.subscribe("hpcc/ecl_wu_published", function (topic) {

+ 1 - 0
esp/src/eclwatch/ResultWidget.js

@@ -183,6 +183,7 @@ define([
                         });
                         context.filter.on("apply", function (evt) {
                             context.refreshHRef();
+                            context.grid._currentPage = 0;
                             context.refresh();
                         });
                         context.filter.refreshState();

+ 1 - 0
esp/src/eclwatch/UserQueryWidget.js

@@ -482,6 +482,7 @@ define([
             });
             this.filter.on("apply", function (evt) {
                 context.refreshHRef();
+                context.usersGrid._currentPage = 0;
                 context.refreshUsersGrid();
             });
 

+ 1 - 0
esp/src/eclwatch/WUQueryWidget.js

@@ -296,6 +296,7 @@ define([
                 });
                 this.filter.on("apply", function (evt) {
                     context.refreshHRef();
+                    context.workunitsGrid._currentPage = 0;
                     context.refreshGrid();
                 });