diff --git a/app/imports/ui/components/Sidebar.vue b/app/imports/ui/components/Sidebar.vue index 84d4938a..ae3d251d 100644 --- a/app/imports/ui/components/Sidebar.vue +++ b/app/imports/ui/components/Sidebar.vue @@ -88,7 +88,7 @@ {title: "Patreon", icon: "", href: "https://www.patreon.com/dicecloud"}, {title: "Github", icon: "", href: "https://github.com/ThaumRystra/DiceCloud/tree/version-2"}, ]; - if (process.env.SHOW_STORYBOOK || Meteor.isDevelopment){ + if (Meteor.settings.public.showStorybook || Meteor.isDevelopment){ links.push({title: 'Component Previews', icon: "category", to: '/storybook/HealthBar'}) } return links; diff --git a/app/imports/ui/router.js b/app/imports/ui/router.js index 4b5ffe5a..4fe5098f 100644 --- a/app/imports/ui/router.js +++ b/app/imports/ui/router.js @@ -55,7 +55,7 @@ RouterFactory.configure(factory => { }, ]); // Storybook routes - if (process.env.SHOW_STORYBOOK || Meteor.isDevelopment){ + if (Meteor.settings.public.showStorybook || Meteor.isDevelopment){ let StoryBook = require('/imports/ui/StoryBook.vue').default; factory.addRoutes([ {