Skip to content

Commit 3ede8ef

Browse files
committed
use KDropdownMenu as context menu
1 parent 56d9c29 commit 3ede8ef

7 files changed

Lines changed: 128 additions & 213 deletions

File tree

contentcuration/contentcuration/frontend/channelEdit/components/ContentNodeContextMenu.vue

Lines changed: 0 additions & 60 deletions
This file was deleted.

contentcuration/contentcuration/frontend/channelEdit/components/ContentNodeEditListItem.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
/>
9191
</template>
9292

93-
<template #context-menu="{ showContextMenu, positionX, positionY }">
93+
<template #context-menu>
9494
<ContentNodeOptions
9595
isContextMenu
9696
:nodeId="nodeId"
@@ -109,7 +109,6 @@
109109
110110
import ContentNodeListItem from './ContentNodeListItem';
111111
import ContentNodeOptions from './ContentNodeOptions';
112-
import ContentNodeContextMenu from './ContentNodeContextMenu';
113112
import Checkbox from 'shared/views/form/Checkbox';
114113
import IconButton from 'shared/views/IconButton';
115114
import DraggableItem from 'shared/views/draggable/DraggableItem';
@@ -125,7 +124,6 @@
125124
DraggableItem,
126125
ContentNodeListItem,
127126
ContentNodeOptions,
128-
ContentNodeContextMenu,
129127
Checkbox,
130128
IconButton,
131129
},

contentcuration/contentcuration/frontend/channelEdit/components/ContentNodeListItem/index.vue

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
<VHover :disabled="copying">
44
<template #default="{ hover }">
5-
<ContextMenuCloak :disabled="contextMenuDisabled">
6-
<template #default="contextMenuProps">
75
<DraggableHandle v-bind="draggableHandle">
86
<template #default>
97
<VListTile
@@ -184,14 +182,10 @@
184182
</div>
185183
<div class="disabled-overlay"></div>
186184
</template>
187-
<slot name="context-menu" v-bind="contextMenuProps"></slot>
185+
<slot name="context-menu" v-if="!contextMenuDisabled"></slot>
188186
</VListTile>
189-
190187
</template>
191188
</DraggableHandle>
192-
193-
</template>
194-
</ContextMenuCloak>
195189
</template>
196190
</VHover>
197191

contentcuration/contentcuration/frontend/channelEdit/components/ContentNodeOptions.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
:isContextMenu="isContextMenu"
55
:options="menuOptions"
66
@select="handleSelect"
7-
/>
7+
>
8+
<template #header>
9+
<slot name="header" />
10+
</template>
11+
</KDropdownMenu>
812

913
</template>
1014

0 commit comments

Comments
 (0)