From 14aee4e74f9b209fbedbd7aafa31f400b4ad44b9 Mon Sep 17 00:00:00 2001 From: Denis Bykhov Date: Wed, 28 Aug 2024 17:15:05 +0500 Subject: [PATCH] Fix office popup join button (#6421) --- plugins/love-resources/src/components/RoomPopup.svelte | 7 +++---- plugins/love-resources/src/utils.ts | 2 -- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/plugins/love-resources/src/components/RoomPopup.svelte b/plugins/love-resources/src/components/RoomPopup.svelte index a226ea6dca..5741408c58 100644 --- a/plugins/love-resources/src/components/RoomPopup.svelte +++ b/plugins/love-resources/src/components/RoomPopup.svelte @@ -129,7 +129,6 @@ } const me = (getCurrentAccount() as PersonAccount).person - $: myRoom = isOffice(room) && room.person === me
@@ -196,9 +195,9 @@ />
{/if} - {#if (joined && !myRoom) || (!allowLeave && $myRequests.length === 0 && !myRoom)} + {#if $location.path[2] !== loveId || (joined && allowLeave) || !joined}
- {#if allowLeave} + {#if joined && allowLeave} - {:else if $myRequests.length === 0 && !myRoom} + {:else if !joined} p.room === room._id) - if (thisRoomRequest !== undefined) return for (const req of currentRequests) { await client.remove(req) }