Skip to content

Commit 2a7f84e

Browse files
author
Hoang Nguyen
authored
ui: Add quickview to the list of VM Snapshot (#4614)
This PR is used to fix the Quick access menu bar missing for VM Snapshots Fixes #4607
1 parent c5b1fec commit 2a7f84e

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

ui/src/components/view/ListView.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,12 @@
9393
<span v-else>{{ text }}</span>
9494
</template>
9595
<a slot="displayname" slot-scope="text, record" href="javascript:;">
96+
<QuickView
97+
style="margin-left: 5px"
98+
:actions="actions"
99+
:resource="record"
100+
:enabled="quickViewEnabled() && actions.length > 0 && columns && columns[0].dataIndex === 'displayname' "
101+
@exec-action="$parent.execAction"/>
96102
<router-link :to="{ path: $route.path + '/' + record.id }">{{ text }}</router-link>
97103
</a>
98104
<span slot="username" slot-scope="text, record" href="javascript:;">
@@ -404,7 +410,7 @@ export default {
404410
methods: {
405411
quickViewEnabled () {
406412
return new RegExp(['/vm', '/kubernetes', '/ssh', '/vmgroup', '/affinitygroup',
407-
'/volume', '/snapshot', '/backup',
413+
'/volume', '/snapshot', '/vmsnapshot', '/backup',
408414
'/guestnetwork', '/vpc', '/vpncustomergateway',
409415
'/template', '/iso',
410416
'/project', '/account',

0 commit comments

Comments
 (0)