diff --git a/static/rbmd/script.js b/static/rbmd/script.js
index 121681d..1b2ad66 100644
--- a/static/rbmd/script.js
+++ b/static/rbmd/script.js
@@ -54,8 +54,12 @@ function unmount(a, b, c) {
function displayData(a){
$("#status").html("
"+a.health+"
");
if (a.health == 'deadly.') {
+ var dead_node = a.deadlyreason["node"];
+ $('#showDeadlyDetails').on('click', openNode(event, dead_node))
$('#showDeadlyDetails').css("display","block");
+
$('#resolve').css("display","block");
+
$("#mountFormTrigger").addClass("w3-disabled")
} else {
$('#showDeadlyDetails').css("display","none");
@@ -93,7 +97,7 @@ function displayData(a){
+ selected_node + '", "'
+ selected_node_body.mounts[i].mountpoint + '", "'
+ selected_node_body.mounts[i].block
- + '")\' >unmount
Mountpoint: ' + mnt.mountpoint
+ + '")\' >unmount
Mountpoint: ' + mnt.mountpoint
+ '
Mountopts: ' + mnt.mountopts
+ '
Fstype: ' + mnt.fstype
+ '
Pool: ' + mnt.pool
@@ -146,15 +150,17 @@ function openNode(evt, nodeName) {
selected_node = nodeName;
x = document.getElementsByClassName("node");
tablinks = document.getElementsByClassName("tablink");
- if (selected_node == 'dead') {
+ // if (selected_node == 'dead') {
+ if (selected_node == deadNode):
$('#details').css("border", "2px solid #f44336");
- if ($('#showDeadlyDetails').html() == "Show details") {
- $('#details').css("display", "block");
- $('#showDeadlyDetails').text('Hide details');
- } else {
- $('#details').css("display", "none");
- $('#showDeadlyDetails').text('Show details');
- }
+ // if ($('#showDeadlyDetails').html() == "Show details") {
+ // $('#details').css("display", "block");
+ // $('#showDeadlyDetails').text('Hide details');
+ // } else {
+ // $('#details').css("display", "none");
+ // $('#showDeadlyDetails').text('Show details');
+ // }
+ displayData(a);
} else {
$('#showDeadlyDetails').text('Show details');
$('#details').css("border", "").css("display", "block"); displayData(a);
diff --git a/templates/rbmd/index.html b/templates/rbmd/index.html
index b2a64b2..be303a8 100644
--- a/templates/rbmd/index.html
+++ b/templates/rbmd/index.html
@@ -39,7 +39,7 @@