Prevent editing linked record columns
This commit is contained in:
parent
71cc7a9059
commit
708d127fef
|
@ -15,6 +15,7 @@
|
||||||
|
|
||||||
$: sortColumn = $backendUiStore.sort && $backendUiStore.sort.column
|
$: sortColumn = $backendUiStore.sort && $backendUiStore.sort.column
|
||||||
$: sortDirection = $backendUiStore.sort && $backendUiStore.sort.direction
|
$: sortDirection = $backendUiStore.sort && $backendUiStore.sort.direction
|
||||||
|
$: type = field?.type
|
||||||
|
|
||||||
function showEditor() {
|
function showEditor() {
|
||||||
editing = true
|
editing = true
|
||||||
|
@ -54,10 +55,12 @@
|
||||||
<CreateEditColumnModal onClosed={hideEditor} {field} />
|
<CreateEditColumnModal onClosed={hideEditor} {field} />
|
||||||
{:else}
|
{:else}
|
||||||
<ul>
|
<ul>
|
||||||
<li data-cy="edit-column-header" on:click={showEditor}>
|
{#if type !== 'link'}
|
||||||
<Icon name="edit" />
|
<li data-cy="edit-column-header" on:click={showEditor}>
|
||||||
Edit
|
<Icon name="edit" />
|
||||||
</li>
|
Edit
|
||||||
|
</li>
|
||||||
|
{/if}
|
||||||
<li
|
<li
|
||||||
data-cy="delete-column-header"
|
data-cy="delete-column-header"
|
||||||
on:click={() => confirmDeleteDialog.show()}>
|
on:click={() => confirmDeleteDialog.show()}>
|
||||||
|
|
Loading…
Reference in New Issue