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/12ddbbc6 Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/12ddbbc6 Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/12ddbbc6 Branch: refs/heads/YARN-4752 Commit: 12ddbbc61d0c90ac4c0057fd7b151eaa778123c8 Parents: bc273c4 Author: sunilg <[email protected]> Authored: Thu Oct 27 14:45:23 2016 +0530 Committer: Wangda Tan <[email protected]> Committed: Sun Nov 6 13:13:31 2016 -0800 ---------------------------------------------------------------------- .../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/12ddbbc6/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: [email protected] For additional commands, e-mail: [email protected]
