mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
network: allowed network to show add IP address button
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
ca8c77f8f1
commit
185e6043e1
@ -57,6 +57,19 @@ export default {
|
||||
popup: true,
|
||||
component: () => import('@/views/network/CreateNetwork.vue')
|
||||
},
|
||||
{
|
||||
api: 'associateIpAddress',
|
||||
icon: 'plus',
|
||||
label: 'Acquire New IP',
|
||||
dataView: true,
|
||||
show: (record) => { return record && record.service && record.service.filter(x => x.name && ['StaticNat', 'SourceNat', 'Firewall', 'PortForwarding', 'Lb'].includes(x.name)).length > 0 },
|
||||
args: ['networkid'],
|
||||
mapping: {
|
||||
networkid: {
|
||||
value: (record) => { return record.id }
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
api: 'updateNetwork',
|
||||
icon: 'edit',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user