You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by sr...@apache.org on 2014/05/01 02:42:11 UTC
git commit: AMBARI-5647. On empty jobs page,
new queries are not showing up. (srimanth)
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 <sg...@hortonworks.com>
Authored: Wed Apr 30 17:31:35 2014 -0700
Committer: Srimanth Gunturi <sg...@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)) {