Simplify lock logic

This commit is contained in:
Andrew Kingston 2021-05-21 11:49:23 +01:00
parent 93d77d058c
commit 52d0be8b58
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@
View published app
</MenuItem>
{/if}
{#if app.lockedBy && app.lockedBy?.email === $auth.user?.email}
{#if app.lockedYou}
<MenuItem on:click={() => releaseLock(app)} icon="LockOpen">
Release lock
</MenuItem>

View File

@ -64,7 +64,7 @@
View published app
</MenuItem>
{/if}
{#if app.lockedBy && app.lockedBy?.email === $auth.user?.email}
{#if app.lockedYou}
<MenuItem on:click={() => releaseLock(app)} icon="LockOpen">
Release lock
</MenuItem>