Browse Source

Merge pull request #7592 from miguelvazq/HPCC-13853

HPCC-13853 Show replicate state of a file

Reviewed-By: Kevin Wang <kevin.wang@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 10 years ago
parent
commit
e4226c83ce

+ 3 - 0
esp/src/eclwatch/LFDetailsWidget.js

@@ -335,6 +335,9 @@ define([
                 this.refreshActionState();
                 //  Force Icon to Show (I suspect its not working due to Circular Reference Loading)
                 this.queriesWidget.set("iconClass", "dijitInline dijitIcon dijitTabButtonIcon iconFind");
+            } else if (name === "DFUFilePartsOnClusters") {
+            	// Currently only checking first cluster may add loop through clusters and add a tab at a later date
+            	this.updateInput("DFUFilePartsOnClusters", oldValue, newValue.DFUFilePartsOnCluster[0].Replicate);
             }
         },
 

+ 1 - 0
esp/src/eclwatch/nls/hpcc.js

@@ -206,6 +206,7 @@ define({root:
     IP: "IP",
     IPAddress: "IP Address",
     IsLibrary: "Is Library",
+    IsReplicated: "Is Replicated",
     Jobname: "Jobname",
     JobName: "Job Name",
     jsmi: "jsmi*",

+ 4 - 0
esp/src/eclwatch/templates/LFDetailsWidget.html

@@ -150,6 +150,10 @@
                                 <label for="${id}RecordCount">${i18n.RecordCount}: </label>
                                 <div id="${id}RecordCount"></div>
                             </li>
+                            <li>
+                                <label for="${id}DFUFilePartsOnClusters">${i18n.IsReplicated}: </label>
+                                <div id="${id}DFUFilePartsOnClusters"></div>
+                            </li>
                         </ul>
                     </form>
                 </div>