CS-13589: cloudstack 3.0 UI - volume page - when a volume is in "Migrating" state, disallow any action.

This commit is contained in:
Jessica Wang 2012-04-17 16:21:10 -07:00
parent 478eb1df6c
commit 4cc9bf95c8

View File

@ -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");