Skip to content

Commit f2e1b57

Browse files
committed
allow updating category for multiple os
Signed-off-by: Abhishek Kumar <[email protected]>
1 parent eda7679 commit f2e1b57

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

ui/src/components/view/ListView.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,7 @@ export default {
737737
'vmsnapshot', 'backup', 'guestnetwork', 'vpc', 'publicip', 'vpnuser', 'vpncustomergateway', 'vnfapp',
738738
'project', 'account', 'systemvm', 'router', 'computeoffering', 'systemoffering',
739739
'diskoffering', 'backupoffering', 'networkoffering', 'vpcoffering', 'ilbvm', 'kubernetes', 'comment', 'buckets',
740-
'webhook', 'webhookdeliveries', 'sharedfs', 'ipv4subnets', 'asnumbers'
740+
'webhook', 'webhookdeliveries', 'sharedfs', 'ipv4subnets', 'asnumbers', 'guestos'
741741
].includes(this.$route.name)
742742
},
743743
getDateAtTimeZone (date, timezone) {

ui/src/config/section/config.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,13 @@ export default {
261261
label: 'label.edit',
262262
dataView: true,
263263
popup: true,
264-
args: ['osdisplayname', 'oscategoryid']
264+
groupAction: true,
265+
args: (record, store, isGroupAction) => {
266+
if (isGroupAction) {
267+
return ['oscategoryid']
268+
}
269+
return ['osdisplayname', 'oscategoryid']
270+
}
265271
},
266272
{
267273
api: 'addGuestOsMapping',

0 commit comments

Comments
 (0)