State templates minor fixes (#1736)

Signed-off-by: Denis Bykhov <80476319+BykhovDenis@users.noreply.github.com>
This commit is contained in:
Denis Bykhov
2022-05-13 13:31:41 +07:00
committed by GitHub
parent 3019d1e790
commit 5e7c320fb5
3 changed files with 44 additions and 21 deletions
@@ -118,19 +118,21 @@
<div class="flex-grow caption-color">
<AttributeEditor maxWidth={'20rem'} _class={state._class} object={state} key="title" />
</div>
<div
class="tool hover-trans"
on:click={(ev) => {
showPopup(
StatusesPopup,
{ onDelete: () => dispatch('delete', { state }) },
eventToHTMLElement(ev),
() => {}
)
}}
>
<IconMoreH size={'medium'} />
</div>
{#if states.length > 1}
<div
class="tool hover-trans"
on:click={(ev) => {
showPopup(
StatusesPopup,
{ onDelete: () => dispatch('delete', { state }) },
eventToHTMLElement(ev),
() => {}
)
}}
>
<IconMoreH size={'medium'} />
</div>
{/if}
</div>
{/if}
{/each}