mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-6852: UI - modules - add global variable drModuleIncluded.
This commit is contained in:
parent
9e2db2f221
commit
c29ed73d4d
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -900,14 +900,11 @@
|
|||
hypervisor: args.context.volumes[0].hypervisor
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
var drModuleIncluded = isModuleIncluded("dr");
|
||||
|
||||
var volumeDrEnabled = false;
|
||||
if (drModuleIncluded) {
|
||||
volumeDrEnabled = cloudStack.dr.sharedFunctions.isVolumeDrEnabled(args.context.volumes[0]);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
$(['Running', 'Stopped']).each(function() {
|
||||
$.ajax({
|
||||
|
|
|
|||
Loading…
Reference in New Issue