mirror of
https://github.com/Lissy93/dashy.git
synced 2024-11-30 01:22:52 +03: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,
|
||||
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
Block a user