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 89643ca407
commit 59e70d96ad
1 changed files with 7 additions and 4 deletions

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