mirror of https://github.com/apache/cloudstack.git
Fix missing actions on Guest IP ranges for networks (#8777)
* Fix missing actions on Guest IP ranges for networks * Show success and error pop on deleting guest ip ranges
This commit is contained in:
parent
08d9d06d45
commit
31301f56f6
|
|
@ -36,14 +36,16 @@
|
|||
:rowKey="item => item.id"
|
||||
:pagination="false" >
|
||||
|
||||
<template #action="{ record }">
|
||||
<template #bodyCell="{ column, record }">
|
||||
<tooltip-button
|
||||
v-if="column.key === 'actions'"
|
||||
tooltipPlacement="bottom"
|
||||
:tooltip="$t('label.edit')"
|
||||
type="primary"
|
||||
@click="() => { handleUpdateIpRangeModal(record) }"
|
||||
icon="swap-outlined" />
|
||||
<a-popconfirm
|
||||
v-if="column.key === 'actions'"
|
||||
:title="$t('message.confirm.remove.ip.range')"
|
||||
@confirm="removeIpRange(record.id)"
|
||||
:okText="$t('label.yes')"
|
||||
|
|
@ -226,6 +228,10 @@ export default {
|
|||
},
|
||||
removeIpRange (id) {
|
||||
api('deleteVlanIpRange', { id: id }).then(json => {
|
||||
const message = `${this.$t('message.success.delete')} ${this.$t('label.ip.range')}`
|
||||
this.$message.success(message)
|
||||
}).catch((error) => {
|
||||
this.$notifyError(error)
|
||||
}).finally(() => {
|
||||
this.fetchData()
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue