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}
<div slot="control" class="icon"> <ActionMenu>
<Icon s hoverable name="MoreSmallList" /> <div slot="control" class="icon">
</div> <Icon s hoverable name="MoreSmallList" />
{#if external} </div>
<MenuItem icon="Edit" on:click={editorModal.show}>Edit</MenuItem> {#if !external}
{/if} <MenuItem icon="Edit" on:click={editorModal.show}>Edit</MenuItem>
{#if allowDeletion} {/if}
<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