fix DirectoryEntry menu action clicks clearing selection
This commit is contained in:
@@ -122,6 +122,7 @@ function onClearCopy() {
|
|||||||
<ContextMenuContent>
|
<ContextMenuContent>
|
||||||
<ContextMenuItem
|
<ContextMenuItem
|
||||||
:class="[warrenStore.current == null && 'hidden']"
|
:class="[warrenStore.current == null && 'hidden']"
|
||||||
|
@pointerdown.stop
|
||||||
@select="openRenameDialog"
|
@select="openRenameDialog"
|
||||||
>
|
>
|
||||||
<Icon name="lucide:pencil" />
|
<Icon name="lucide:pencil" />
|
||||||
@@ -136,22 +137,24 @@ function onClearCopy() {
|
|||||||
copyStore.file.path !== warrenStore.current.path ||
|
copyStore.file.path !== warrenStore.current.path ||
|
||||||
copyStore.file.name !== entry.name
|
copyStore.file.name !== entry.name
|
||||||
"
|
"
|
||||||
|
@pointerdown.stop
|
||||||
@select="onCopy"
|
@select="onCopy"
|
||||||
>
|
>
|
||||||
<Icon name="lucide:copy" />
|
<Icon name="lucide:copy" />
|
||||||
Copy
|
Copy
|
||||||
</ContextMenuItem>
|
</ContextMenuItem>
|
||||||
<ContextMenuItem v-else @select="onClearCopy">
|
<ContextMenuItem v-else @pointerdown.stop @select="onClearCopy">
|
||||||
<Icon name="lucide:copy-x" />
|
<Icon name="lucide:copy-x" />
|
||||||
Clear clipboard
|
Clear clipboard
|
||||||
</ContextMenuItem>
|
</ContextMenuItem>
|
||||||
</template>
|
</template>
|
||||||
<ContextMenuItem @select="onDownload">
|
<ContextMenuItem @pointerdown.stop @select="onDownload">
|
||||||
<Icon name="lucide:download" />
|
<Icon name="lucide:download" />
|
||||||
Download
|
Download
|
||||||
</ContextMenuItem>
|
</ContextMenuItem>
|
||||||
<ContextMenuItem
|
<ContextMenuItem
|
||||||
:class="[warrenStore.current == null && 'hidden']"
|
:class="[warrenStore.current == null && 'hidden']"
|
||||||
|
@pointerdown.stop
|
||||||
@select="onShare"
|
@select="onShare"
|
||||||
>
|
>
|
||||||
<Icon name="lucide:share" />
|
<Icon name="lucide:share" />
|
||||||
@@ -164,6 +167,7 @@ function onClearCopy() {
|
|||||||
|
|
||||||
<ContextMenuItem
|
<ContextMenuItem
|
||||||
:class="[warrenStore.current == null && 'hidden']"
|
:class="[warrenStore.current == null && 'hidden']"
|
||||||
|
@pointerdown.stop
|
||||||
@select="() => onDelete(false)"
|
@select="() => onDelete(false)"
|
||||||
>
|
>
|
||||||
<Icon name="lucide:trash-2" />
|
<Icon name="lucide:trash-2" />
|
||||||
@@ -171,6 +175,7 @@ function onClearCopy() {
|
|||||||
</ContextMenuItem>
|
</ContextMenuItem>
|
||||||
<ContextMenuItem
|
<ContextMenuItem
|
||||||
:class="[warrenStore.current == null && 'hidden']"
|
:class="[warrenStore.current == null && 'hidden']"
|
||||||
|
@pointerdown.stop
|
||||||
@select="() => onDelete(true)"
|
@select="() => onDelete(true)"
|
||||||
>
|
>
|
||||||
<Icon
|
<Icon
|
||||||
|
|||||||
Reference in New Issue
Block a user