Allow app card rows to display all lock statuses
This commit is contained in:
parent
89643ca407
commit
59e70d96ad
|
@ -8,8 +8,6 @@
|
||||||
MenuItem,
|
MenuItem,
|
||||||
Link,
|
Link,
|
||||||
} from "@budibase/bbui"
|
} from "@budibase/bbui"
|
||||||
import { AppStatus } from "constants"
|
|
||||||
import { url } from "@roxi/routify"
|
|
||||||
import { auth } from "stores/backend"
|
import { auth } from "stores/backend"
|
||||||
|
|
||||||
export let app
|
export let app
|
||||||
|
@ -34,8 +32,13 @@
|
||||||
</div>
|
</div>
|
||||||
<div class:last>
|
<div class:last>
|
||||||
{#if app.lockedBy}
|
{#if app.lockedBy}
|
||||||
<div class="status status--locked-you" />
|
{#if app.lockedBy.email === $auth.user.email}
|
||||||
Locked by {app.lockedBy.email}
|
<div class="status status--locked-you" />
|
||||||
|
Locked by you
|
||||||
|
{:else}
|
||||||
|
<div class="status status--locked-other" />
|
||||||
|
Locked by {app.lockedBy.email}
|
||||||
|
{/if}
|
||||||
{:else}
|
{:else}
|
||||||
<div class="status status--open" />
|
<div class="status status--open" />
|
||||||
Open
|
Open
|
||||||
|
|
Loading…
Reference in New Issue