From 26af22703f4d7f74e6b572d4191f73cd9973afc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C5=ABdolfs=20O=C5=A1i=C5=86=C5=A1?= Date: Thu, 19 Nov 2026 16:51:47 +0100 Subject: [PATCH] desktop: Remove the reload button Views now follow changes as they happen, so a reload is rarely needed and the button takes room in the sidebar's header. Mod+R still reloads. --- desktop/src/App.svelte | 2 -- desktop/src/components/AppSidebar.svelte | 10 ---------- desktop/tests/e2e/leaveProfile.spec.ts | 2 +- 3 files changed, 1 insertion(+), 13 deletions(-) diff --git a/desktop/src/App.svelte b/desktop/src/App.svelte index a1d42e057..04d95d735 100644 --- a/desktop/src/App.svelte +++ b/desktop/src/App.svelte @@ -135,8 +135,6 @@ run: () => { // A reload would throw away whatever is being composed in a modal. if (!modalHasTextEntry()) { - // Matches the sidebar's reload button rather than re-fetching per - // route. window.location.reload(); } }, diff --git a/desktop/src/components/AppSidebar.svelte b/desktop/src/components/AppSidebar.svelte index 42341cbf0..7cb0153ca 100644 --- a/desktop/src/components/AppSidebar.svelte +++ b/desktop/src/components/AppSidebar.svelte @@ -640,16 +640,6 @@ stylePadding="0"> - diff --git a/desktop/tests/e2e/leaveProfile.spec.ts b/desktop/tests/e2e/leaveProfile.spec.ts index 21fc43426..c53ec3b8d 100644 --- a/desktop/tests/e2e/leaveProfile.spec.ts +++ b/desktop/tests/e2e/leaveProfile.spec.ts @@ -135,7 +135,7 @@ test("a device in two profiles leaves one and waits for the approval", async ({ // The wait is read from the profile, so another device's vote shows when // the page loads again. (joined.pending[0] as { rejected: string[] }).rejected = [aliceRemote]; - await page.getByRole("button", { name: "Reload" }).click(); + await page.reload(); await expect(row(joinedRid)).toContainText("1 of 2 approved, 1 rejected."); // The other device may never answer, so the leave can be taken back.