mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-21 14:20:42 +08:00
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:
@@ -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();
|
||||
}
|
||||
},
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user