HDFS-13499. RBF: Show disabled name services in the UI. Contributed by Inigo Goiri.
(cherry picked from commit 0a293de00d
)
This commit is contained in:
parent
2253616064
commit
e097998c22
|
@ -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>
|
||||||
|
|
|
@ -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 = "";
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue