mirror of https://github.com/Lissy93/dashy.git
✨ Adds helper function to enable furniture hiding
This commit is contained in:
parent
98d92f9c87
commit
64ef03036e
|
@ -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,
|
||||
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 */
|
||||
localStorageKeys: {
|
||||
LANGUAGE: 'language',
|
||||
|
|
Loading…
Reference in New Issue