Skip to content

Commit 4cc9bf9

Browse files
author
Jessica Wang
committed
CS-13589: cloudstack 3.0 UI - volume page - when a volume is in "Migrating" state, disallow any action.
1 parent 478eb1d commit 4cc9bf9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎ui/scripts/storage.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1178,7 +1178,7 @@
11781178
var jsonObj = args.context.item;
11791179
var allowedActions = [];
11801180

1181-
if (jsonObj.state == 'Destroyed') {
1181+
if (jsonObj.state == 'Destroyed' || jsonObj.state == 'Migrating') {
11821182
return [];
11831183
}
11841184

@@ -1191,7 +1191,7 @@
11911191
allowedActions.push("downloadVolume");
11921192
}
11931193
}
1194-
if(jsonObj.state != "Creating" && jsonObj.state != "Corrupted" && jsonObj.name != "attaching") {
1194+
if(jsonObj.state != "Creating") {
11951195
if(jsonObj.type == "ROOT") {
11961196
if (jsonObj.vmstate == "Stopped") {
11971197
allowedActions.push("createTemplate");

0 commit comments

Comments
 (0)