discard file copy update

This commit is contained in:
Pavel Laptev 2024-02-19 00:22:52 +01:00
parent 739da32243
commit 2959840c3f

View File

@ -26,9 +26,9 @@
<ContextMenuSection> <ContextMenuSection>
{#if item.files !== undefined} {#if item.files !== undefined}
{#if containsBinaryFiles(item)} {#if containsBinaryFiles(item)}
<ContextMenuItem label="Discard (Binary files not yet supported)" disabled /> <ContextMenuItem label="Discard file (Binary files not yet supported)" disabled />
{:else} {:else}
<ContextMenuItem label="Discard" on:click={() => confirmationModal.show(item)} /> <ContextMenuItem label="Discard file" on:click={() => confirmationModal.show(item)} />
{/if} {/if}
{/if} {/if}
</ContextMenuSection> </ContextMenuSection>