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, 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