فهرست منبع

AMBARI-3131. Ganglia / Nagios web links shown in Ambari Web are broken when HTTPS is enabled. (Andrii Babiichuk via yusaku)

Yusaku Sako 11 سال پیش
والد
کامیت
99d9d038d1
1فایلهای تغییر یافته به همراه21 افزوده شده و 0 حذف شده
  1. 21 0
      ambari-web/app/controllers/global/cluster_controller.js

+ 21 - 0
ambari-web/app/controllers/global/cluster_controller.js

@@ -357,7 +357,28 @@ App.ClusterController = Em.Controller.extend({
     this.loadAlerts(function(){
         self.updateLoadStatus('alerts');
     });
+    this.loadAmbariProperties();
+  },
+
+  ambariProperties: null,
+
+  loadAmbariProperties: function() {
+    App.ajax.send({
+      name: 'ambari.service',
+      sender: this,
+      success: 'loadAmbariPropertiesSuccess',
+      error: 'loadAmbariPropertiesError'
+    });
+    return this.get('ambariProperties');
+  },
+
+  loadAmbariPropertiesSuccess: function(data) {
+    console.log('loading ambari properties');
+    this.set('ambariProperties', data.RootServiceComponents.properties);
+  },
 
+  loadAmbariPropertiesError: function() {
+    console.warn('can\'t get ambari properties');
   },
 
   clusterName:function () {