mirror of
https://github.com/Lissy93/dashy.git
synced 2025-07-21 04:35:15 +02:00
✨ Adds helper function to enable furniture hiding
This commit is contained in:
parent
98d92f9c87
commit
64ef03036e
6
src/utils/MiscHelpers.js
Normal file
6
src/utils/MiscHelpers.js
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
import { hideFurnitureOn } from '@/utils/defaults';
|
||||||
|
|
||||||
|
/* Returns false if page furniture should be hidden on said route */
|
||||||
|
export const shouldBeVisible = (routeName) => !hideFurnitureOn.includes(routeName);
|
||||||
|
|
||||||
|
export const x = () => null;
|
@ -58,6 +58,11 @@ module.exports = {
|
|||||||
settings: true,
|
settings: true,
|
||||||
footer: true,
|
footer: true,
|
||||||
},
|
},
|
||||||
|
/* A list of route names that page furniture (header, footer, etc) should be hidden on */
|
||||||
|
hideFurnitureOn: [
|
||||||
|
'minimal',
|
||||||
|
'login',
|
||||||
|
],
|
||||||
/* Key names for local storage identifiers */
|
/* Key names for local storage identifiers */
|
||||||
localStorageKeys: {
|
localStorageKeys: {
|
||||||
LANGUAGE: 'language',
|
LANGUAGE: 'language',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user