{#if isOpen}
{ if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); onClose(); } }} role="button" tabindex="0" aria-label="Close panel" >
Adjust Profile Events
×
{#if selectedKind === null}
{#each PROFILE_EVENT_KINDS as { kind, name }}
selectKind(kind)}> {name} (Kind {kind})
{/each}
{:else}
← Back
Edit Kind {selectedKind}
Content
Tags
{#each tags as tag, index (index)}
updateTag(index, 0, e.currentTarget.value)} placeholder="Tag name" class="tag-input" /> {#each tag.slice(1) as value, valueIndex}
updateTag(index, valueIndex + 1, e.currentTarget.value)} placeholder="Tag value" class="tag-input" /> {/each}
{ const newTags = [...tags]; newTags[index] = [...newTags[index], '']; tags = newTags; }}>+
removeTag(index)}>×
{/each}
Add Tag
{publishing ? 'Publishing...' : 'Publish'}
{/if}
{/if}
{#if publicationResults && publicationResults.success.length === 0 && publicationResults.failed.length > 0}
All relays failed. You can attempt to republish from cache.
Republish from Cache
{/if}