mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
fix: show remove played even when logged out
This commit is contained in:
1 parent
80d61d9e04
commit
7c4e28bd09
1 file changed
+18
-18
@@ -37,26 +37,26 @@ export function PlaylistActions() {
|
|||||||
{strings.website.tools.playlist.shuffle}
|
{strings.website.tools.playlist.shuffle}
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
|
<Button
|
||||||
|
size={{ initial: "1", xs: "2" }}
|
||||||
|
variant="outline"
|
||||||
|
onClick={() => {
|
||||||
|
Playlist.mutate((draft) => {
|
||||||
|
draft.list = draft.list?.filter(
|
||||||
|
(entry) =>
|
||||||
|
(!entry.now ||
|
||||||
|
!entry.then ||
|
||||||
|
entry.now.battles === entry.then.battles) &&
|
||||||
|
!entry.checked
|
||||||
|
);
|
||||||
|
});
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{strings.website.tools.playlist.remove}
|
||||||
|
</Button>
|
||||||
|
|
||||||
{wargaming && (
|
{wargaming && (
|
||||||
<>
|
<>
|
||||||
<Button
|
|
||||||
size={{ initial: "1", xs: "2" }}
|
|
||||||
variant="outline"
|
|
||||||
onClick={() => {
|
|
||||||
Playlist.mutate((draft) => {
|
|
||||||
draft.list = draft.list?.filter(
|
|
||||||
(entry) =>
|
|
||||||
(!entry.now ||
|
|
||||||
!entry.then ||
|
|
||||||
entry.now.battles === entry.then.battles) &&
|
|
||||||
!entry.checked
|
|
||||||
);
|
|
||||||
});
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
{strings.website.tools.playlist.remove}
|
|
||||||
</Button>
|
|
||||||
|
|
||||||
<DropdownMenu.Root>
|
<DropdownMenu.Root>
|
||||||
<DropdownMenu.Trigger>
|
<DropdownMenu.Trigger>
|
||||||
<Button size={{ initial: "1", xs: "2" }}>
|
<Button size={{ initial: "1", xs: "2" }}>
|
||||||
|
|||||||
Reference in new issue
Block a user