Highlight library filter icon as active for tracker filter (#681)
This commit is contained in:
@@ -18,7 +18,10 @@ export const LibraryToolbarMenu: React.FC = () => {
|
|||||||
|
|
||||||
const [open, setOpen] = useState(false);
|
const [open, setOpen] = useState(false);
|
||||||
const { options } = useLibraryOptionsContext();
|
const { options } = useLibraryOptionsContext();
|
||||||
const active = options.downloaded != null || options.unread != null;
|
const active =
|
||||||
|
options.downloaded != null ||
|
||||||
|
options.unread != null ||
|
||||||
|
Object.values(options.tracker).some((trackerFilterStatus) => trackerFilterStatus != null);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|||||||
Reference in New Issue
Block a user