Skip to content

Commit d2f10ce

Browse files
quickViewEnabled condition update
1 parent 0b168d7 commit d2f10ce

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

ui/src/components/view/ListView.vue

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1210,17 +1210,17 @@ export default {
12101210
createPathBasedOnVmType: createPathBasedOnVmType,
12111211
quickViewEnabled (actions, columns, key) {
12121212
return actions.length > 0 &&
1213-
(columns && ['name', 'provider', 'hypervisor', 'intervaltype'].includes(columns[0].dataIndex) || ['displayname'].includes(key)) &&
1213+
(columns && key === columns[0].dataIndex) &&
12141214
new RegExp(['/vm', '/kubernetes', '/ssh', '/userdata', '/vmgroup', '/affinitygroup', '/autoscalevmgroup',
1215-
'/volume', '/snapshot', '/vmsnapshot', '/backup',
1216-
'/guestnetwork', '/vpc', '/vpncustomergateway', '/vnfapp',
1217-
'/template', '/iso',
1218-
'/project', '/account', 'buckets', 'objectstore',
1219-
'/zone', '/pod', '/cluster', '/host', '/storagepool', '/imagestore', '/systemvm', '/router', '/ilbvm', '/annotation',
1220-
'/computeoffering', '/systemoffering', '/diskoffering', '/backupoffering', '/networkoffering', '/vpcoffering',
1221-
'/tungstenfabric', '/oauthsetting', '/guestos', '/guestoshypervisormapping', '/webhook', 'webhookdeliveries', 'webhookfilters', '/quotatariff', '/sharedfs',
1222-
'/ipv4subnets', '/managementserver', '/gpucard', '/gpudevices', '/vgpuprofile', '/extension', '/snapshotpolicy', '/backupschedule'].join('|'))
1223-
.test(this.$route.path)
1215+
'/volume', '/snapshot', '/vmsnapshot', '/backup',
1216+
'/guestnetwork', '/vpc', '/vpncustomergateway', '/vnfapp',
1217+
'/template', '/iso',
1218+
'/project', '/account', 'buckets', 'objectstore',
1219+
'/zone', '/pod', '/cluster', '/host', '/storagepool', '/imagestore', '/systemvm', '/router', '/ilbvm', '/annotation',
1220+
'/computeoffering', '/systemoffering', '/diskoffering', '/backupoffering', '/networkoffering', '/vpcoffering',
1221+
'/tungstenfabric', '/oauthsetting', '/guestos', '/guestoshypervisormapping', '/webhook', 'webhookdeliveries', 'webhookfilters', '/quotatariff', '/sharedfs',
1222+
'/ipv4subnets', '/managementserver', '/gpucard', '/gpudevices', '/vgpuprofile', '/extension', '/snapshotpolicy', '/backupschedule'].join('|'))
1223+
.test(this.$route.path)
12241224
},
12251225
enableGroupAction () {
12261226
return ['vm', 'alert', 'vmgroup', 'ssh', 'userdata', 'affinitygroup', 'autoscalevmgroup', 'volume', 'snapshot',

0 commit comments

Comments
 (0)