{#snippet banner()} (selected ? initialStates[selected] : undefined)} getCurrent={() => current} onDiscard={() => { if (!selected) return UserDraft.discard('variable', editPath ?? '', initialStates[selected], { workspace: selected }) }} disabled={!can_write} /> {/snippet}
{#if !can_write} You only have read access to this resource and cannot edit it {/if} {#if otherDirty.length > 0} You are going to edit the value in: {otherDirty.join(', ')} {/if} {#if current} {#key current} {/key} {/if}
{#snippet actions()} {#if edit && curWs} {/if} {/snippet}