All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

Commit 69f4b94b authored by Leigh B Stoller's avatar Leigh B Stoller

Grey out delete node if only one node. Closes issue #271

parent 49477706
......@@ -1840,6 +1840,12 @@ $(function ()
if (window.APT_OPTIONS.cansnap) {
$("#snapshot_button").removeClass("hidden");
}
// Not allowed to delete the last node.
var nodename = Object.keys(hostportList)[0];
$('#listview-row-' + nodename + ' [name=delete]')
.parent().addClass('disabled');
$(contextMenus[nodename])
.find("li[id=delete]").addClass("disabled");
}
// Bind a function to start up ssh for one node topologies.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment