mirror of
https://github.com/directus/directus.git
synced 2026-02-12 01:04:56 -05:00
Only show context menu for collections (#17725)
* Only show context menu for collections * don't attach event listener on null
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<v-list-group
|
||||
v-if="isGroup && matchesSearch"
|
||||
v-context-menu="'contextMenu'"
|
||||
v-context-menu="hasContextMenu ? 'contextMenu' : null"
|
||||
:to="to"
|
||||
scope="content-navigation"
|
||||
:value="collection.collection"
|
||||
@@ -128,7 +128,7 @@ export default defineComponent({
|
||||
}
|
||||
});
|
||||
|
||||
const hasContextMenu = computed(() => isAdmin);
|
||||
const hasContextMenu = computed(() => isAdmin && props.collection.type === 'table');
|
||||
|
||||
return {
|
||||
childCollections,
|
||||
|
||||
Reference in New Issue
Block a user