mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2025-09-02 08:42:31 +00:00
show duplicate button in horizontal list, closes #64
This commit is contained in:
@@ -277,36 +277,34 @@
|
|||||||
</ContextMenu.Item>
|
</ContextMenu.Item>
|
||||||
<ContextMenu.Separator />
|
<ContextMenu.Separator />
|
||||||
{/if}
|
{/if}
|
||||||
|
<ContextMenu.Item on:click={dbUtils.duplicateSelection}>
|
||||||
|
<Copy size="16" class="mr-1" />
|
||||||
|
{$_('menu.duplicate')}
|
||||||
|
<Shortcut key="D" ctrl={true} /></ContextMenu.Item
|
||||||
|
>
|
||||||
{#if orientation === 'vertical'}
|
{#if orientation === 'vertical'}
|
||||||
<ContextMenu.Item on:click={dbUtils.duplicateSelection}>
|
<ContextMenu.Item on:click={copySelection}>
|
||||||
<Copy size="16" class="mr-1" />
|
<ClipboardCopy size="16" class="mr-1" />
|
||||||
{$_('menu.duplicate')}
|
{$_('menu.copy')}
|
||||||
<Shortcut key="D" ctrl={true} /></ContextMenu.Item
|
<Shortcut key="C" ctrl={true} />
|
||||||
|
</ContextMenu.Item>
|
||||||
|
<ContextMenu.Item on:click={cutSelection}>
|
||||||
|
<Scissors size="16" class="mr-1" />
|
||||||
|
{$_('menu.cut')}
|
||||||
|
<Shortcut key="X" ctrl={true} />
|
||||||
|
</ContextMenu.Item>
|
||||||
|
<ContextMenu.Item
|
||||||
|
disabled={$copied === undefined ||
|
||||||
|
$copied.length === 0 ||
|
||||||
|
!allowedPastes[$copied[0].level].includes(item.level)}
|
||||||
|
on:click={pasteSelection}
|
||||||
>
|
>
|
||||||
{#if orientation === 'vertical'}
|
<ClipboardPaste size="16" class="mr-1" />
|
||||||
<ContextMenu.Item on:click={copySelection}>
|
{$_('menu.paste')}
|
||||||
<ClipboardCopy size="16" class="mr-1" />
|
<Shortcut key="V" ctrl={true} />
|
||||||
{$_('menu.copy')}
|
</ContextMenu.Item>
|
||||||
<Shortcut key="C" ctrl={true} />
|
|
||||||
</ContextMenu.Item>
|
|
||||||
<ContextMenu.Item on:click={cutSelection}>
|
|
||||||
<Scissors size="16" class="mr-1" />
|
|
||||||
{$_('menu.cut')}
|
|
||||||
<Shortcut key="X" ctrl={true} />
|
|
||||||
</ContextMenu.Item>
|
|
||||||
<ContextMenu.Item
|
|
||||||
disabled={$copied === undefined ||
|
|
||||||
$copied.length === 0 ||
|
|
||||||
!allowedPastes[$copied[0].level].includes(item.level)}
|
|
||||||
on:click={pasteSelection}
|
|
||||||
>
|
|
||||||
<ClipboardPaste size="16" class="mr-1" />
|
|
||||||
{$_('menu.paste')}
|
|
||||||
<Shortcut key="V" ctrl={true} />
|
|
||||||
</ContextMenu.Item>
|
|
||||||
{/if}
|
|
||||||
<ContextMenu.Separator />
|
|
||||||
{/if}
|
{/if}
|
||||||
|
<ContextMenu.Separator />
|
||||||
<ContextMenu.Item on:click={dbUtils.deleteSelection}>
|
<ContextMenu.Item on:click={dbUtils.deleteSelection}>
|
||||||
{#if item instanceof ListFileItem}
|
{#if item instanceof ListFileItem}
|
||||||
<FileX size="16" class="mr-1" />
|
<FileX size="16" class="mr-1" />
|
||||||
|
Reference in New Issue
Block a user