Commit 401e0c9c authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

Ask for confirmation before deleting a VM

parent ea9a36ef
Pipeline #2955 passed with stages
in 2 minutes and 9 seconds
......@@ -255,6 +255,12 @@ $(document).ready(() => {
$(".vmdelete").click((event) => {
event.preventDefault();
var confirmed = confirm("Er du helt sikker på at du ønsker å slette denne vm-en med alle tilhørende data?");
if (!confirmed) {
return false;
}
var id = $(event.target).data("vmid");
wmstatus(id, "delete");
});
......
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