Skip to content

Commit 83205e7

Browse files
committed
Add resource alert rule grouping functionality in configuration
1 parent 1db098f commit 83205e7

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

ui/src/components/view/ListView.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1227,7 +1227,8 @@ export default {
12271227
'vmsnapshot', 'backup', 'guestnetwork', 'vpc', 'publicip', 'vpnuser', 'vpncustomergateway', 'vnfapp',
12281228
'project', 'account', 'systemvm', 'router', 'computeoffering', 'systemoffering',
12291229
'diskoffering', 'backupoffering', 'networkoffering', 'vpcoffering', 'ilbvm', 'kubernetes', 'comment', 'buckets',
1230-
'webhook', 'webhookdeliveries', 'sharedfs', 'ipv4subnets', 'asnumbers', 'guestos', 'gpucard', 'gpudevices', 'vgpuprofile'
1230+
'webhook', 'webhookdeliveries', 'sharedfs', 'ipv4subnets', 'asnumbers', 'guestos', 'gpucard', 'gpudevices', 'vgpuprofile',
1231+
'resourcealertrule'
12311232
].includes(this.$route.name)
12321233
},
12331234
getDateAtTimeZone (date, timezone) {

ui/src/config/section/infra/resourceAlertRules.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ export default {
6363
icon: 'delete-outlined',
6464
label: 'label.delete',
6565
message: 'message.confirm.delete.resource.alert.rule',
66-
dataView: true
66+
dataView: true,
67+
groupAction: true,
68+
groupMap: (selection) => { return selection.map(x => { return { id: x.id } }) }
6769
}
6870
]
6971
}

0 commit comments

Comments
 (0)