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.
This commit is contained in:
Rūdolfs Ošiņš
2026-11-20 19:32:17 +01:00
parent 848a1b2b5c
commit 26af22703f
3 changed files with 1 additions and 13 deletions
-2
View File
@@ -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();
}
},
-10
View File
@@ -640,16 +640,6 @@
stylePadding="0">
<span class="icon"><Icon name="arrow-right" /></span>
</Button>
<Button
variant="naked"
title="Reload"
ariaLabel="Reload"
onclick={() => window.location.reload()}
styleWidth={isMini ? "2rem" : "1.5rem"}
styleHeight={isMini ? "2rem" : "1.5rem"}
stylePadding="0">
<span class="icon"><Icon name="refresh" /></span>
</Button>
</span>
</div>
+1 -1
View File
@@ -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.