This commit is contained in:
parent
88766c6c08
commit
68583e24b8
@ -98,8 +98,6 @@ export default function NavSidebar({ narrow = false }: { narrow: boolean }) {
|
|||||||
</span>
|
</span>
|
||||||
);
|
);
|
||||||
|
|
||||||
const showDeck = CONFIG.showDeck || !(CONFIG.deckSubKind !== undefined && (sub?.type ?? -1) < CONFIG.deckSubKind);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={className}>
|
<div className={className}>
|
||||||
<LogoHeader showText={!narrow} />
|
<LogoHeader showText={!narrow} />
|
||||||
@ -114,9 +112,6 @@ export default function NavSidebar({ narrow = false }: { narrow: boolean }) {
|
|||||||
if ((CONFIG.hideFromNavbar ?? []).includes(a.link)) {
|
if ((CONFIG.hideFromNavbar ?? []).includes(a.link)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (a.link == "/deck" && !showDeck) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
if (readonly && a.hideReadOnly) {
|
if (readonly && a.hideReadOnly) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user