HDFS-13499. RBF: Show disabled name services in the UI. Contributed by Inigo Goiri.

This commit is contained in:
Yiqun Lin 2018-04-27 10:38:15 +08:00
parent 93979db840
commit 0a293de00d
3 changed files with 9 additions and 0 deletions

View File

@ -132,6 +132,7 @@
<li class="federationhealth-namenode-icon federationhealth-namenode-active">Active</li>
<li class="federationhealth-namenode-icon federationhealth-namenode-standby">Standby</li>
<li class="federationhealth-namenode-icon federationhealth-namenode-safemode">Safe mode</li>
<li class="federationhealth-namenode-icon federationhealth-namenode-disabled">Disabled</li>
<li class="federationhealth-namenode-icon federationhealth-namenode-unavailable">Unavailable</li>
</ul>
</div>

View File

@ -130,6 +130,9 @@
} else if (nodes[i].state === "UNAVAILABLE") {
n.title = capitalise(n.state);
n.iconState = "unavailable";
} else if (nodes[i].state === "DISABLED") {
n.title = capitalise(n.state);
n.iconState = "disabled";
}
if (n.namenodeId === "null") {
n.namenodeId = "";

View File

@ -53,6 +53,11 @@
content: "\e090";
}
.federationhealth-namenode-disabled:before {
color: #eea236;
content: "\e136";
}
.federationhealth-namenode-legend {
list-style-type: none;
text-align: right;