ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From srima...@apache.org
Subject git commit: AMBARI-5647. On empty jobs page, new queries are not showing up. (srimanth)
Date Thu, 01 May 2014 00:42:11 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 602d6d7bb -> 84c101fa5


AMBARI-5647. On empty jobs page, new queries are not showing up. (srimanth)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/84c101fa
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/84c101fa
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/84c101fa

Branch: refs/heads/trunk
Commit: 84c101fa594e46c33e66561c7301eedccc2a518a
Parents: 602d6d7
Author: Srimanth Gunturi <sgunturi@hortonworks.com>
Authored: Wed Apr 30 17:31:35 2014 -0700
Committer: Srimanth Gunturi <sgunturi@hortonworks.com>
Committed: Wed Apr 30 17:31:41 2014 -0700

----------------------------------------------------------------------
 ambari-web/app/controllers/main/jobs_controller.js | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/84c101fa/ambari-web/app/controllers/main/jobs_controller.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/main/jobs_controller.js b/ambari-web/app/controllers/main/jobs_controller.js
index fd94f5e..6849ba1 100644
--- a/ambari-web/app/controllers/main/jobs_controller.js
+++ b/ambari-web/app/controllers/main/jobs_controller.js
@@ -372,6 +372,9 @@ App.MainJobsController = Em.Controller.extend({
     var lastReceivedID = data.entities[0].entity;
     if(this.get('lastJobID') == '') {
       this.set('lastJobID', lastReceivedID);
+      if (this.get('loaded') && App.HiveJob.find().get('length') < 1) {
+        this.set('hasNewJobs', true);
+      }
     } else if (this.get('lastJobID') !== lastReceivedID) {
       this.set('lastJobID', lastReceivedID);
       if(!App.HiveJob.find().findProperty('id', lastReceivedID)) {


Mime
View raw message