mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CS-13589: cloudstack 3.0 UI - volume page - when a volume is in "Migrating" state, disallow any action.
This commit is contained in:
parent
478eb1df6c
commit
4cc9bf95c8
@ -1178,7 +1178,7 @@
|
||||
var jsonObj = args.context.item;
|
||||
var allowedActions = [];
|
||||
|
||||
if (jsonObj.state == 'Destroyed') {
|
||||
if (jsonObj.state == 'Destroyed' || jsonObj.state == 'Migrating') {
|
||||
return [];
|
||||
}
|
||||
|
||||
@ -1191,7 +1191,7 @@
|
||||
allowedActions.push("downloadVolume");
|
||||
}
|
||||
}
|
||||
if(jsonObj.state != "Creating" && jsonObj.state != "Corrupted" && jsonObj.name != "attaching") {
|
||||
if(jsonObj.state != "Creating") {
|
||||
if(jsonObj.type == "ROOT") {
|
||||
if (jsonObj.vmstate == "Stopped") {
|
||||
allowedActions.push("createTemplate");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user