Skip to content
Snippets Groups Projects
Commit 18806064 authored by Maxim Filippov's avatar Maxim Filippov :new_moon_with_face:
Browse files

Fix tests

parent ac1c19a7
No related branches found
No related tags found
1 merge request!43Add ability to disable settings/reports during compile time
...@@ -6,7 +6,8 @@ Vue.use(Router) ...@@ -6,7 +6,8 @@ Vue.use(Router)
/* Layout */ /* Layout */
import Layout from '@/views/layout/Layout' import Layout from '@/views/layout/Layout'
const settingsDisabled = process.env.DISABLED_FEATURES.includes('settings') const disabledFeatures = process.env.DISABLED_FEATURES || []
const settingsDisabled = disabledFeatures.includes('settings')
const settings = { const settings = {
path: '/settings', path: '/settings',
component: Layout, component: Layout,
...@@ -20,7 +21,7 @@ const settings = { ...@@ -20,7 +21,7 @@ const settings = {
] ]
} }
const reportsDisabled = process.env.DISABLED_FEATURES.includes('reports') const reportsDisabled = disabledFeatures.includes('reports')
const reports = { const reports = {
path: '/reports', path: '/reports',
component: Layout, component: Layout,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment