Skip to content

Commit a8a853e

Browse files
author
Jessica Wang
committed
CLOUDSTACK-6852: UI - modules - add global variable drModuleIncluded.
1 parent 2459f55 commit a8a853e

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

ui/scripts/cloudStack.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,5 +490,8 @@
490490
}
491491

492492
document.title = _l('label.app.name');
493+
494+
// set value to global variable
495+
drModuleIncluded = isModuleIncluded("dr");
493496
});
494497
})(cloudStack, jQuery);

ui/scripts/sharedFunctions.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ var md5HashedLogin = false;
4949
var pageSize = 20;
5050
//var pageSize = 1; //for testing only
5151

52+
var drModuleIncluded = false;
53+
5254
var rootAccountId = 1;
5355

5456
//async action

ui/scripts/storage.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -901,14 +901,11 @@
901901
});
902902
}
903903

904-
905-
var drModuleIncluded = isModuleIncluded("dr");
906904
var volumeDrEnabled = false;
907905
if (drModuleIncluded) {
908906
volumeDrEnabled = cloudStack.dr.sharedFunctions.isVolumeDrEnabled(args.context.volumes[0]);
909907
}
910908

911-
912909
$(['Running', 'Stopped']).each(function() {
913910
$.ajax({
914911
url: createURL('listVirtualMachines'),

0 commit comments

Comments
 (0)