Simplify lock logic
This commit is contained in:
parent
9d9d791999
commit
7cda131279
|
@ -40,7 +40,7 @@
|
||||||
View published app
|
View published app
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
{/if}
|
{/if}
|
||||||
{#if app.lockedBy && app.lockedBy?.email === $auth.user?.email}
|
{#if app.lockedYou}
|
||||||
<MenuItem on:click={() => releaseLock(app)} icon="LockOpen">
|
<MenuItem on:click={() => releaseLock(app)} icon="LockOpen">
|
||||||
Release lock
|
Release lock
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
|
|
|
@ -64,7 +64,7 @@
|
||||||
View published app
|
View published app
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
{/if}
|
{/if}
|
||||||
{#if app.lockedBy && app.lockedBy?.email === $auth.user?.email}
|
{#if app.lockedYou}
|
||||||
<MenuItem on:click={() => releaseLock(app)} icon="LockOpen">
|
<MenuItem on:click={() => releaseLock(app)} icon="LockOpen">
|
||||||
Release lock
|
Release lock
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
|
|
Loading…
Reference in New Issue