mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-2162: Scope parameter for adding primary storage for a basic zone set up
This commit is contained in:
parent
f15a6e4b6d
commit
1fb9c8e788
@ -609,6 +609,25 @@
|
||||
}
|
||||
},
|
||||
|
||||
scope:{
|
||||
label:'label.scope',
|
||||
select:function(args){
|
||||
var scopeData=[];
|
||||
//intelligence to handle different hypervisors to be added here
|
||||
/* if( selectedHypervisor == 'XenServer'){
|
||||
scopeData.push({ id: 'cluster', description: _l('label.cluster') });
|
||||
}*/
|
||||
// else if (selectedHypervisor == 'KVM'){
|
||||
scopeData.push({ id: 'cluster', description: _l('label.cluster') });
|
||||
scopeData.push({ id: 'zone', description: _l('label.zone.wide') });
|
||||
|
||||
args.response.success({
|
||||
|
||||
data: scopeData
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
server: {
|
||||
label: 'label.server',
|
||||
validation: { required: true }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user