mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-6852: UI - modules - add global variable drModuleIncluded.
This commit is contained in:
parent
2459f55c23
commit
a8a853e322
@ -490,5 +490,8 @@
|
||||
}
|
||||
|
||||
document.title = _l('label.app.name');
|
||||
|
||||
// set value to global variable
|
||||
drModuleIncluded = isModuleIncluded("dr");
|
||||
});
|
||||
})(cloudStack, jQuery);
|
||||
|
||||
@ -49,6 +49,8 @@ var md5HashedLogin = false;
|
||||
var pageSize = 20;
|
||||
//var pageSize = 1; //for testing only
|
||||
|
||||
var drModuleIncluded = false;
|
||||
|
||||
var rootAccountId = 1;
|
||||
|
||||
//async action
|
||||
|
||||
@ -901,14 +901,11 @@
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
var drModuleIncluded = isModuleIncluded("dr");
|
||||
var volumeDrEnabled = false;
|
||||
if (drModuleIncluded) {
|
||||
volumeDrEnabled = cloudStack.dr.sharedFunctions.isVolumeDrEnabled(args.context.volumes[0]);
|
||||
}
|
||||
|
||||
|
||||
$(['Running', 'Stopped']).each(function() {
|
||||
$.ajax({
|
||||
url: createURL('listVirtualMachines'),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user