mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-20 23:32:14 +00:00
Fix office popup join button (#6421)
This commit is contained in:
parent
4fcc9a435b
commit
14aee4e74f
@ -129,7 +129,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
const me = (getCurrentAccount() as PersonAccount).person
|
const me = (getCurrentAccount() as PersonAccount).person
|
||||||
$: myRoom = isOffice(room) && room.person === me
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="antiPopup room-popup">
|
<div class="antiPopup room-popup">
|
||||||
@ -196,9 +195,9 @@
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
{#if (joined && !myRoom) || (!allowLeave && $myRequests.length === 0 && !myRoom)}
|
{#if $location.path[2] !== loveId || (joined && allowLeave) || !joined}
|
||||||
<div class="btns flex-row-center flex-reverse flex-no-shrink w-full flex-gap-2">
|
<div class="btns flex-row-center flex-reverse flex-no-shrink w-full flex-gap-2">
|
||||||
{#if allowLeave}
|
{#if joined && allowLeave}
|
||||||
<ModernButton
|
<ModernButton
|
||||||
label={love.string.LeaveRoom}
|
label={love.string.LeaveRoom}
|
||||||
icon={love.icon.LeaveRoom}
|
icon={love.icon.LeaveRoom}
|
||||||
@ -206,7 +205,7 @@
|
|||||||
kind={'negative'}
|
kind={'negative'}
|
||||||
on:click={leave}
|
on:click={leave}
|
||||||
/>
|
/>
|
||||||
{:else if $myRequests.length === 0 && !myRoom}
|
{:else if !joined}
|
||||||
<ModernButton
|
<ModernButton
|
||||||
icon={love.icon.EnterRoom}
|
icon={love.icon.EnterRoom}
|
||||||
label={love.string.EnterRoom}
|
label={love.string.EnterRoom}
|
||||||
|
@ -624,8 +624,6 @@ export async function tryConnect (
|
|||||||
|
|
||||||
if (room._id === currentInfo?.room) return
|
if (room._id === currentInfo?.room) return
|
||||||
if (room.access === RoomAccess.DND) return
|
if (room.access === RoomAccess.DND) return
|
||||||
const thisRoomRequest = currentRequests.find((p) => p.room === room._id)
|
|
||||||
if (thisRoomRequest !== undefined) return
|
|
||||||
for (const req of currentRequests) {
|
for (const req of currentRequests) {
|
||||||
await client.remove(req)
|
await client.remove(req)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user