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/de225daf
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/de225daf
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/de225daf

Branch: refs/heads/YARN-3368
Commit: de225daf31eda4478d8b0c52a79a2591915aea4a
Parents: ebe87bc
Author: sunilg <sun...@apache.org>
Authored: Thu Oct 27 14:45:23 2016 +0530
Committer: Wangda Tan <wan...@apache.org>
Committed: Thu Oct 27 12:10:57 2016 -0700

----------------------------------------------------------------------
 .../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/de225daf/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-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-commits-h...@hadoop.apache.org

Reply via email to