mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-571: cloudstack UI - network menu - guest network section - network detailView - edit action - network offering upgrade is not allowed in Shared network.
This commit is contained in:
parent
4b539ddcb3
commit
8819ec6ea7
@ -933,6 +933,11 @@
|
||||
label: 'label.network.offering',
|
||||
isEditable: true,
|
||||
select: function(args){
|
||||
if (args.context.networks[0].type == 'Shared') { //Shared network is not allowed to upgrade to a different network offering
|
||||
args.response.success({ data: [] });
|
||||
return;
|
||||
}
|
||||
|
||||
if (args.context.networks[0].state == 'Destroyed') {
|
||||
args.response.success({ data: [] });
|
||||
return;
|
||||
|
||||
@ -266,7 +266,7 @@ cloudStack.actionFilter = {
|
||||
var allowedActions = [];
|
||||
|
||||
if(jsonObj.type == 'Isolated') {
|
||||
allowedActions.push('edit'); //only Isolated network can be upgraded
|
||||
allowedActions.push('edit'); //only Isolated network is allowed to upgrade to a different network offering (Shared network is not allowed to)
|
||||
allowedActions.push('restart');
|
||||
allowedActions.push('remove');
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user