Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -49,30 +49,28 @@
<template #actions-end>
<VListTileAction class="action-icon px-1" @click.stop>
<transition name="fade">
<IconButton
<KIconButton
icon="rename"
size="small"
:text="$tr('editTooltip')"
:tooltip="$tr('editTooltip')"
:disabled="copying"
@click.stop
@click="editTitleDescription()"
/>
</transition>
</VListTileAction>
<VListTileAction :aria-hidden="!active" class="action-icon px-1">
<Menu v-model="activated">
<template #activator="{ on }">
<IconButton
icon="optionsVertical"
:text="$tr('optionsTooltip')"
size="small"
:disabled="copying"
v-on="on"
@click.stop
/>
<KIconButton
icon="optionsVertical"
size="small"
:tooltip="$tr('optionsTooltip')"
:disabled="copying"
@click.stop
>
<template #menu>
<ContentNodeOptions v-if="!copying" :nodeId="nodeId" />
</template>
<ContentNodeOptions v-if="!copying && activated" :nodeId="nodeId" />
</Menu>
</KIconButton>
</VListTileAction>
</template>

Expand All @@ -92,11 +90,9 @@
/>
</template>

<template #context-menu="{ showContextMenu, positionX, positionY }">
<ContentNodeContextMenu
:show="showContextMenu"
:positionX="positionX"
:positionY="positionY"
<template #context-menu>
<ContentNodeOptions
isContextMenu
:nodeId="nodeId"
/>
</template>
Expand All @@ -113,7 +109,6 @@

import ContentNodeListItem from './ContentNodeListItem';
import ContentNodeOptions from './ContentNodeOptions';
import ContentNodeContextMenu from './ContentNodeContextMenu';
import Checkbox from 'shared/views/form/Checkbox';
import IconButton from 'shared/views/IconButton';
import DraggableItem from 'shared/views/draggable/DraggableItem';
Expand All @@ -129,7 +124,6 @@
DraggableItem,
ContentNodeListItem,
ContentNodeOptions,
ContentNodeContextMenu,
Checkbox,
IconButton,
},
Expand Down Expand Up @@ -164,11 +158,6 @@
default: false,
},
},
data() {
return {
activated: false,
};
},
computed: {
...mapGetters('currentChannel', ['canEdit']),
...mapGetters('contentNode', [
Expand All @@ -186,7 +175,7 @@
},
},
active() {
return this.selected || this.activated || this.previewing;
return this.selected || this.previewing;
},
contentNode() {
return this.getContentNode(this.nodeId);
Expand Down
Loading