disable ability to rename external datasource

This commit is contained in:
Peter Clement 2021-11-18 15:14:23 +00:00
parent c40cffc34d
commit 48942a6b85
1 changed files with 4 additions and 2 deletions

View File

@ -22,7 +22,7 @@
let templateScreens
let willBeDeleted
$: external = table?.type === "external"
$: internal = table?.type === "internal"
function showDeleteModal() {
templateScreens = $allScreens.filter(
@ -66,7 +66,9 @@
<div slot="control" class="icon">
<Icon s hoverable name="MoreSmallList" />
</div>
{#if internal}
<MenuItem icon="Edit" on:click={editorModal.show}>Edit</MenuItem>
{/if}
<MenuItem icon="Delete" on:click={showDeleteModal}>Delete</MenuItem>
</ActionMenu>