mirror of https://github.com/apache/cloudstack.git
bug 13726
Don't show destroy action on network details for shared networks or networks w/o Source NAT service status 13726: resolved fixed reviewed-by: jessica
This commit is contained in:
parent
2b312931a8
commit
4036b342ab
|
|
@ -684,6 +684,13 @@
|
|||
if (args.context.networks[0].state == 'Destroyed')
|
||||
return [];
|
||||
|
||||
if (args.context.networks[0].type == 'Shared' ||
|
||||
!$.grep(args.context.networks[0].service, function(service) {
|
||||
return service.name == 'SourceNat';
|
||||
}).length) {
|
||||
return ['edit', 'restart'];
|
||||
}
|
||||
|
||||
return args.context.actions;
|
||||
},
|
||||
data: args.context.networks[0]
|
||||
|
|
|
|||
Loading…
Reference in New Issue