mirror of
https://github.com/idanoo/autobrr
synced 2025-07-22 16:29:12 +00:00
fix(lists): toggle toast message (#1897)
fix(web): invert list toggle state in toast message
This commit is contained in:
parent
0cf704dba3
commit
c1c97d2d97
1 changed files with 1 additions and 1 deletions
|
@ -118,7 +118,7 @@ function ListItem({ list }: ListItemProps) {
|
||||||
onSuccess: () => {
|
onSuccess: () => {
|
||||||
queryClient.invalidateQueries({ queryKey: ListKeys.lists() });
|
queryClient.invalidateQueries({ queryKey: ListKeys.lists() });
|
||||||
|
|
||||||
toast.custom(t => <Toast type="success" body={`List ${list.name} was ${list.enabled ? "enabled" : "disabled"} successfully.`} t={t} />);
|
toast.custom(t => <Toast type="success" body={`List ${list.name} was ${list.enabled ? "disabled" : "enabled"} successfully.`} t={t} />);
|
||||||
},
|
},
|
||||||
onError: () => {
|
onError: () => {
|
||||||
toast.custom((t) => <Toast type="error" body="List state could not be updated" t={t} />);
|
toast.custom((t) => <Toast type="error" body="List state could not be updated" t={t} />);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue