Ver Fonte

AMBARI-5113 Ambari UI doesn't resume updating after logout/login. (atkach)

atkach há 11 anos atrás
pai
commit
bfac237167

+ 6 - 0
ambari-web/app/assets/data/services/ambari_server.json

@@ -0,0 +1,6 @@
+{
+  "RootServiceComponents" : {
+    "properties" : {},
+    "component_version": '1.5.0'
+  }
+}

+ 1 - 0
ambari-web/app/assets/data/user_settings/showJobsForNonAdmin.json

@@ -0,0 +1 @@
+true

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

@@ -284,6 +284,7 @@ App.ClusterController = Em.Controller.extend({
     }
 
     if(this.get('isLoaded')) { // do not load data repeatedly
+      App.router.get('mainController').startPolling();
       return;
     }
     var clusterUrl = this.getUrl('/data/clusters/cluster.json', '?fields=Clusters');

+ 1 - 1
ambari-web/app/utils/ajax.js

@@ -1378,7 +1378,7 @@ var urls = {
   },
   'ambari.service': {
     'real': '/services/AMBARI/components/AMBARI_SERVER',
-    'mock': ''
+    'mock': '/data/services/ambari_server.json'
   },
   'ambari.service.load_server_clock': {
     'real': '/services/AMBARI/components/AMBARI_SERVER?fields=RootServiceComponents/server_clock',