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

(cherry picked from commit 0a293de00d)
This commit is contained in:
Yiqun Lin 2018-04-27 10:38:15 +08:00
parent 2253616064
commit e097998c22
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-active">Active</li>
<li class="federationhealth-namenode-icon federationhealth-namenode-standby">Standby</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-safemode">Safe mode</li>
<li class="federationhealth-namenode-icon federationhealth-namenode-disabled">Disabled</li>
<li class="federationhealth-namenode-icon federationhealth-namenode-unavailable">Unavailable</li> <li class="federationhealth-namenode-icon federationhealth-namenode-unavailable">Unavailable</li>
</ul> </ul>
</div> </div>

View File

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

View File

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