Fix relationship cells not being readonly
This commit is contained in:
parent
e48e2ff7f0
commit
666762a2c2
|
@ -216,13 +216,13 @@
|
||||||
{#if relationship.primaryDisplay}
|
{#if relationship.primaryDisplay}
|
||||||
<div class="badge">
|
<div class="badge">
|
||||||
<span
|
<span
|
||||||
on:click={focused
|
on:click={editable
|
||||||
? () => showRelationship(relationship._id)
|
? () => showRelationship(relationship._id)
|
||||||
: null}
|
: null}
|
||||||
>
|
>
|
||||||
{relationship.primaryDisplay}
|
{relationship.primaryDisplay}
|
||||||
</span>
|
</span>
|
||||||
{#if focused}
|
{#if editable}
|
||||||
<Icon
|
<Icon
|
||||||
name="Close"
|
name="Close"
|
||||||
size="XS"
|
size="XS"
|
||||||
|
@ -233,7 +233,7 @@
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
{/each}
|
{/each}
|
||||||
{#if focused}
|
{#if editable}
|
||||||
<div class="add" on:click={open}>
|
<div class="add" on:click={open}>
|
||||||
<Icon name="Add" size="S" />
|
<Icon name="Add" size="S" />
|
||||||
</div>
|
</div>
|
||||||
|
@ -356,7 +356,7 @@
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
.focused .values .badge span:hover {
|
.editable .values .badge span:hover {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue