hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sun...@apache.org
Subject [36/50] [abbrv] hadoop git commit: YARN-5497. [YARN-3368] Use different color for Undefined and Succeeded for Final State in applications page. (Akhil P B Tan via Sunil G)
Date Fri, 28 Oct 2016 14:34:32 GMT
YARN-5497. [YARN-3368] Use different color for Undefined and Succeeded for Final State in applications
page. (Akhil P B Tan via Sunil G)


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

Branch: refs/heads/YARN-3368
Commit: abe3db9a06c22f8a841363fa2967705630d15604
Parents: f04d40a
Author: sunilg <sunilg@apache.org>
Authored: Thu Oct 27 14:45:23 2016 +0530
Committer: sunilg <sunilg@apache.org>
Committed: Fri Oct 28 20:02:27 2016 +0530

----------------------------------------------------------------------
 .../hadoop-yarn-ui/src/main/webapp/app/models/yarn-app.js     | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/abe3db9a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/models/yarn-app.js
----------------------------------------------------------------------
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/models/yarn-app.js
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/models/yarn-app.js
index 0a5df87..8b5474f 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/models/yarn-app.js
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/models/yarn-app.js
@@ -86,14 +86,17 @@ export default DS.Model.extend({
   }.property("progress"),
 
   finalStatusStyle: function() {
-    var style = "default";
     var finalStatus = this.get("finalStatus");
+    var style = "";
+
     if (finalStatus == "KILLED") {
       style = "warning";
     } else if (finalStatus == "FAILED") {
       style = "danger";
-    } else {
+    } else if (finalStatus == "SUCCEEDED") {
       style = "success";
+    } else {
+      style = "default";
     }
 
     return "label label-" + style;


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message