show datasource plus popover conditionally

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

View File

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