show datasource plus popover conditionally

This commit is contained in:
Peter Clement 2021-11-23 13:54:05 +00:00
parent 1da1331b3a
commit b2fbe308be
1 changed files with 10 additions and 10 deletions

View File

@ -72,17 +72,17 @@
}
</script>
<ActionMenu>
<div slot="control" class="icon">
<Icon s hoverable name="MoreSmallList" />
</div>
{#if external}
<MenuItem icon="Edit" on:click={editorModal.show}>Edit</MenuItem>
{/if}
{#if allowDeletion}
{#if allowDeletion}
<ActionMenu>
<div slot="control" class="icon">
<Icon s hoverable name="MoreSmallList" />
</div>
{#if !external}
<MenuItem icon="Edit" on:click={editorModal.show}>Edit</MenuItem>
{/if}
<MenuItem icon="Delete" on:click={showDeleteModal}>Delete</MenuItem>
{/if}
</ActionMenu>
</ActionMenu>
{/if}
<Modal bind:this={editorModal}>
<ModalContent