mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-22 03:14:40 +03: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
|
||||
$: myRoom = isOffice(room) && room.person === me
|
||||
</script>
|
||||
|
||||
<div class="antiPopup room-popup">
|
||||
@ -196,9 +195,9 @@
|
||||
/>
|
||||
</div>
|
||||
{/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">
|
||||
{#if allowLeave}
|
||||
{#if joined && allowLeave}
|
||||
<ModernButton
|
||||
label={love.string.LeaveRoom}
|
||||
icon={love.icon.LeaveRoom}
|
||||
@ -206,7 +205,7 @@
|
||||
kind={'negative'}
|
||||
on:click={leave}
|
||||
/>
|
||||
{:else if $myRequests.length === 0 && !myRoom}
|
||||
{:else if !joined}
|
||||
<ModernButton
|
||||
icon={love.icon.EnterRoom}
|
||||
label={love.string.EnterRoom}
|
||||
|
@ -624,8 +624,6 @@ export async function tryConnect (
|
||||
|
||||
if (room._id === currentInfo?.room) 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) {
|
||||
await client.remove(req)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user