[pve-devel] [PATCH pve-manager 2/2] fix display cluster status in Datacenter Panel

Emmanuel Kasper e.kasper at proxmox.com
Wed Mar 2 11:26:43 CET 2016


use getData() instead of accessing the intern raw value
---
 www/manager6/dc/Summary.js | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/www/manager6/dc/Summary.js b/www/manager6/dc/Summary.js
index e6d8236..ba9f774 100644
--- a/www/manager6/dc/Summary.js
+++ b/www/manager6/dc/Summary.js
@@ -88,13 +88,13 @@ Ext.define('PVE.dc.NodeView', {
 		return;
 	    }
 
-	    var cluster_raw = cluster_rec.raw;
-	    if (!cluster_raw) {
+	    var cluster_data = cluster_rec.getData();
+	    if (!cluster_data) {
 		status.update(noClusterText);
 		return;
 	    }
-	    var text = gettext("Cluster") + ": " + cluster_raw.name + ",  " +
-		gettext("Quorate") + ": " + PVE.Utils.format_boolean(cluster_raw.quorate);
+	    var text = gettext("Cluster") + ": " + cluster_data.name + ",  " +
+		gettext("Quorate") + ": " + PVE.Utils.format_boolean(cluster_data.quorate);
 	    status.update(text);
 	});
 
-- 
2.1.4





More information about the pve-devel mailing list