HDFS-13199. RBF: Fix the hdfs router page missing label icon issue. Contributed by maobaolong.

(cherry picked from commit d86f301d46)
This commit is contained in:
Inigo Goiri 2018-02-27 17:39:02 -08:00
parent 13e86a7ab8
commit 0d7a3f48bc
2 changed files with 8 additions and 8 deletions

View File

@ -253,7 +253,7 @@
<div>
<ul class="dfshealth-node-legend">
<li class="dfshealth-node-icon dfshealth-node-alive">Active</li>
<li class="dfshealth-node-icon dfshealth-node-decommisioned">Safe mode</li>
<li class="dfshealth-node-icon dfshealth-node-decommissioned">Safe mode</li>
<li class="dfshealth-node-icon dfshealth-node-down">Unavailable</li>
</ul>
</div>
@ -297,8 +297,8 @@
<ul class="dfshealth-node-legend">
<li class="dfshealth-node-icon dfshealth-node-alive">In service</li>
<li class="dfshealth-node-icon dfshealth-node-down">Down</li>
<li class="dfshealth-node-icon dfshealth-node-decommisioned">Decommisioned</li>
<li class="dfshealth-node-icon dfshealth-node-down-decommisioned">Decommissioned &amp; dead</li>
<li class="dfshealth-node-icon dfshealth-node-decommissioned">Decommissioned</li>
<li class="dfshealth-node-icon dfshealth-node-down-decommissioned">Decommissioned &amp; dead</li>
</ul>
</div>
<div class="page-header"><h1><small>In operation</small></h1></div>

View File

@ -117,13 +117,13 @@
n.iconState = "down";
if (n.isSafeMode === true) {
n.title = capitalise(n.state) + " (safe mode)"
n.iconState = "decommisioned";
n.iconState = "decommissioned";
} else if (n.state === "ACTIVE") {
n.title = capitalise(n.state);
n.iconState = "alive";
} else if (nodes[i].state === "STANDBY") {
n.title = capitalise(n.state);
n.iconState = "down-decommisioned";
n.iconState = "down-decommissioned";
} else if (nodes[i].state === "UNAVAILABLE") {
n.title = capitalise(n.state);
n.iconState = "down";
@ -189,10 +189,10 @@
n.iconState = "alive";
} else if (n.status === "SAFEMODE") {
n.title = capitalise(n.status);
n.iconState = "down-decommisioned";
n.iconState = "down-decommissioned";
} else if (n.status === "STOPPING") {
n.title = capitalise(n.status);
n.iconState = "decommisioned";
n.iconState = "decommissioned";
} else if (n.status === "SHUTDOWN") {
n.title = capitalise(n.status);
n.iconState = "down";
@ -258,7 +258,7 @@
if (n.adminState === "In Service") {
n.state = "alive";
} else if (nodes[i].adminState === "Decommission In Progress") {
n.state = "decommisioning";
n.state = "decommissioning";
} else if (nodes[i].adminState === "Decommissioned") {
n.state = "decommissioned";
}