Prevent editing linked record columns

This commit is contained in:
Andrew Kingston 2020-10-01 11:33:26 +01:00
parent 71cc7a9059
commit 708d127fef
1 changed files with 7 additions and 4 deletions

View File

@ -15,6 +15,7 @@
$: sortColumn = $backendUiStore.sort && $backendUiStore.sort.column
$: sortDirection = $backendUiStore.sort && $backendUiStore.sort.direction
$: type = field?.type
function showEditor() {
editing = true
@ -54,10 +55,12 @@
<CreateEditColumnModal onClosed={hideEditor} {field} />
{:else}
<ul>
{#if type !== 'link'}
<li data-cy="edit-column-header" on:click={showEditor}>
<Icon name="edit" />
Edit
</li>
{/if}
<li
data-cy="delete-column-header"
on:click={() => confirmDeleteDialog.show()}>