1
0
Fork 0
mirror of synced 2024-10-01 01:28:51 +13:00

Allow app card rows to display all lock statuses

This commit is contained in:
Andrew Kingston 2021-05-18 13:55:15 +01:00
parent 725b32b9b1
commit 7fb40cd7ad

View file

@ -8,8 +8,6 @@
MenuItem,
Link,
} from "@budibase/bbui"
import { AppStatus } from "constants"
import { url } from "@roxi/routify"
import { auth } from "stores/backend"
export let app
@ -34,8 +32,13 @@
</div>
<div class:last>
{#if app.lockedBy}
<div class="status status--locked-you" />
Locked by {app.lockedBy.email}
{#if app.lockedBy.email === $auth.user.email}
<div class="status status--locked-you" />
Locked by you
{:else}
<div class="status status--locked-other" />
Locked by {app.lockedBy.email}
{/if}
{:else}
<div class="status status--open" />
Open