mirror of
https://github.com/unraid/webgui.git
synced 2026-04-21 17:29:28 -05:00
Merge remote-tracking branch 'limetech/6.4-wip' into 6.4-wip
This commit is contained in:
@@ -24,7 +24,7 @@ function addVMContext(name, uuid, template, state, vncurl, log){
|
||||
}
|
||||
if (state == "running") {
|
||||
opts.push({text:"Stop", icon:"fa-stop", action:function(e) {
|
||||
e.preventDefault();
|
||||
e.preventDefault();
|
||||
ajaxVMDispatch({action:"domain-stop", uuid:uuid}, "loadlist");
|
||||
}});
|
||||
opts.push({text:"Pause", icon:"fa-pause", action:function(e) {
|
||||
@@ -86,6 +86,7 @@ function addVMContext(name, uuid, template, state, vncurl, log){
|
||||
}});
|
||||
}
|
||||
} else {
|
||||
opts.push({text:"Edit", icon:"fa-pencil", href:path+'/UpdateVM?uuid='+uuid});
|
||||
opts.push({text:"View XML", icon:"fa-code", href:path+'/UpdateVM?template=Custom&uuid='+uuid});
|
||||
}
|
||||
context.attach('#vm-'+uuid, opts);
|
||||
|
||||
Reference in New Issue
Block a user