Make SeedButton blue again in read-only mode

This commit is contained in:
Sebastian Martinez
2024-03-21 07:19:43 +01:00
parent 8e2090070d
commit 7f2f03efc3
2 changed files with 3 additions and 11 deletions
-4
View File
@@ -207,10 +207,6 @@ function pollSession() {
}
export async function initialize() {
if (!get(experimental)) {
return;
}
// Sync session state changes with other open tabs and windows.
addEventListener("storage", event => {
if (
+3 -7
View File
@@ -103,18 +103,14 @@
toggle();
}
}}
variant={!$experimental
? "outline"
: seeding
? "secondary-toggle-on"
: "secondary-toggle-off"}>
variant={seeding ? "secondary-toggle-on" : "secondary-toggle-off"}>
<IconSmall name="network" />
<span class="title-counter">
{seeding ? "Seeding" : "Seed"}
<span
class="counter"
class:seeding={$experimental ? seeding : false}
class:not-seeding={$experimental ? !seeding : false}
class:seeding
class:not-seeding={!seeding}
class:disabled={$experimental ? !canEditSeeding : false}
style:font-weight="var(--font-weight-regular)">
{seedCount}