YARN-5497. [YARN-3368] Use different color for Undefined and Succeeded for Final State in applications page. (Akhil P B Tan via Sunil G)

This commit is contained in:
sunilg 2016-10-27 14:45:23 +05:30 committed by Wangda Tan
parent bc273c43ae
commit 12ddbbc61d
1 changed files with 5 additions and 2 deletions

View File

@ -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;