mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
Fix: testing and unlocked filters off by default and exclusive
Both buttons in the testing and unlocked filter pairs started on, so showing only one kind meant turning the other kind off. Start all four filters off, treat a pair with neither button on as showing everything, and make the buttons in each pair mutually exclusive: turning one on turns its partner off, and clicking an active one turns it off. The playlist page now sets the unlocked filter on (and locked off) explicitly, since the old default no longer provides that.
This commit is contained in:
1 parent
f3e8cdd5e0
commit
cef393473f
4 files changed
+16
-7
No files matched your search
@@ -789,6 +789,7 @@ function OwnershipFilterInternal(props: FlexProps) {
|
||||
onClick={() => {
|
||||
TankFilters.mutate((draft) => {
|
||||
draft.showOwned = !draft.showOwned;
|
||||
if (draft.showOwned) draft.showUnowned = false;
|
||||
});
|
||||
}}
|
||||
>
|
||||
@@ -808,6 +809,7 @@ function OwnershipFilterInternal(props: FlexProps) {
|
||||
onClick={() => {
|
||||
TankFilters.mutate((draft) => {
|
||||
draft.showUnowned = !draft.showUnowned;
|
||||
if (draft.showUnowned) draft.showOwned = false;
|
||||
});
|
||||
}}
|
||||
>
|
||||
@@ -834,6 +836,7 @@ function TestFilter() {
|
||||
onClick={() => {
|
||||
TankFilters.mutate((draft) => {
|
||||
draft.showNonTesting = !draft.showNonTesting;
|
||||
if (draft.showNonTesting) draft.showTesting = false;
|
||||
});
|
||||
}}
|
||||
>
|
||||
@@ -854,6 +857,7 @@ function TestFilter() {
|
||||
onClick={() => {
|
||||
TankFilters.mutate((draft) => {
|
||||
draft.showTesting = !draft.showTesting;
|
||||
if (draft.showTesting) draft.showNonTesting = false;
|
||||
});
|
||||
}}
|
||||
>
|
||||
|
||||
Reference in new issue
Block a user