Преглед изворни кода

Merge pull request #5793 from GordonSmith/HPCC-11320

HPCC-11320 Only display user added resources

Reviewed-By: Kevin Wang <kevin.wang@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman пре 11 година
родитељ
комит
2d3bd84e93
2 измењених фајлова са 6 додато и 1 уклоњено
  1. 5 0
      esp/src/eclwatch/ESPWorkunit.js
  2. 1 1
      esp/src/eclwatch/WUDetailsWidget.js

+ 5 - 0
esp/src/eclwatch/ESPWorkunit.js

@@ -139,6 +139,10 @@ define([
             }
             this.set("timers", timers);
         },
+        _ResourceURLCountSetter: function (ResourceURLCount) {
+            //  All WU's have 1 resource URL, which we are not interested in  ---
+            this.set("resourceURLCount", ResourceURLCount - 1);
+        },
         _ResourceURLsSetter: function (resourceURLs) {
             var data = [];
             arrayUtil.forEach(resourceURLs.URL, function (url, idx) {
@@ -158,6 +162,7 @@ define([
                 }
             }, this);
             this.set("resourceURLs", data);
+            this.set("resourceURLCount", data.length);
         },
         _GraphsSetter: function (Graphs) {
             this.set("graphs", Graphs.ECLGraph);

+ 1 - 1
esp/src/eclwatch/WUDetailsWidget.js

@@ -415,7 +415,7 @@ define([
                 }
                 this.graphsWidget.set("tooltip", tooltip);
                 this.setDisabled(this.graphsWidget.id, false);
-            } else if (name === "ResourceURLCount" && newValue) {
+            } else if (name === "resourceURLCount" && newValue) {
                 this.widget._Resources.set("title", this.i18n.Resources + " (" + newValue + ")");
                 this.setDisabled(this.widget._Resources.id, false);
             } else if (name === "Archived") {