Only show selectors in Add mode

This commit is contained in:
Abdo 2025-08-14 08:52:11 +03:00
parent b17bfb2658
commit 0137ca6c27

View file

@ -1208,7 +1208,9 @@ components and functionality for general note editing.
on:dragover={preventDefaultIfNonLegacy}
on:drop={checkNonLegacy(handlePickerDrop)}
>
<EditorChoosers bind:selectedNotetype bind:selectedDeck onNotetypeChange={onNotetypeChange} />
{#if mode === "add"}
<EditorChoosers bind:selectedNotetype bind:selectedDeck onNotetypeChange={onNotetypeChange} />
{/if}
<EditorToolbar {size} {wrap} api={toolbar}>
<svelte:fragment slot="notetypeButtons">