Skip to content

Commit d18dfb2

Browse files
committed
ui: disable network actions for the external vm
Signed-off-by: Abhishek Kumar <[email protected]>
1 parent 8c5b846 commit d18dfb2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ui/src/views/network/NicsTab.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
@confirm="setAsDefault(record.nic)"
3333
:okText="$t('label.yes')"
3434
:cancelText="$t('label.no')"
35-
v-if="!record.nic.isdefault"
35+
v-if="!record.nic.isdefault && resource.hypervisor !== 'External'"
3636
>
3737
<tooltip-button
3838
tooltipPlacement="bottom"
@@ -41,14 +41,14 @@
4141
icon="check-square-outlined" />
4242
</a-popconfirm>
4343
<tooltip-button
44-
v-if="record.nic.type !== 'L2'"
44+
v-if="record.nic.type !== 'L2' && resource.hypervisor !== 'External'"
4545
tooltipPlacement="bottom"
4646
:tooltip="$t('label.change.ip.address')"
4747
icon="swap-outlined"
4848
:disabled="!('updateVmNicIp' in $store.getters.apis)"
4949
@onClick="onChangeIPAddress(record)" />
5050
<tooltip-button
51-
v-if="record.nic.type !== 'L2'"
51+
v-if="record.nic.type !== 'L2' && resource.hypervisor !== 'External'"
5252
tooltipPlacement="bottom"
5353
:tooltip="$t('label.edit.secondary.ips')"
5454
icon="environment-outlined"
@@ -59,7 +59,7 @@
5959
@confirm="removeNIC(record.nic)"
6060
:okText="$t('label.yes')"
6161
:cancelText="$t('label.no')"
62-
v-if="!record.nic.isdefault"
62+
v-if="!record.nic.isdefault && resource.hypervisor !== 'External'"
6363
>
6464
<tooltip-button
6565
tooltipPlacement="bottom"

0 commit comments

Comments
 (0)