Browse Source

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

Yusaku Sako 11 years ago
parent
commit
99d9d038d1
1 changed files with 21 additions and 0 deletions
  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 () {