{#if editable}
{ if (ev.key === 'Enter') { ev.preventDefault() ev.stopPropagation() dispatch('close', value) } }} on:change />
{ if (input) { value = '' input.focus() } }} />
{ dispatch('close', value) }} /> {#if openable}
{ dispatch('update', value) dispatch('close', 'open') }} /> {/if} {#if '_id' in channel}
{ showPopup( ContextMenu, { object: channel, includedActions: [view.action.Delete] }, getEventPopupPositionElement(evt), () => { dispatch('close') } ) }} /> {/if}
{:else}
{ if (openable) { dispatch('update', 'open') } }} > {value}
{ show = true }} on:focus={() => { show = true }} on:mouseleave={() => { show = false label = plugin.string.CopyToClipboard }} on:blur={() => { show = false label = plugin.string.CopyToClipboard }} on:click={copyChannel} /> {#if openable}
{ dispatch('update', 'open') }} /> {/if}
{/if}