diff --git a/.env.example b/.env.example index 3223c6c48..4d4dc59bf 100644 --- a/.env.example +++ b/.env.example @@ -14,3 +14,6 @@ VITE_ENABLE_REMOTE_SAVE=true # VolView server remote URL VITE_REMOTE_SERVER_URL=http://localhost:4014 + +# Controls the initial visibility of the Sample Data section. +VITE_SHOW_SAMPLE_DATA=true diff --git a/src/store/data-browser.ts b/src/store/data-browser.ts index 05d06b057..a7c5fd925 100644 --- a/src/store/data-browser.ts +++ b/src/store/data-browser.ts @@ -2,7 +2,8 @@ import { defineStore } from 'pinia'; import { ref } from 'vue'; export const useDataBrowserStore = defineStore('data-browser', () => { - const hideSampleData = ref(false); + const hideSampleData = ref(import.meta.env.VITE_SHOW_SAMPLE_DATA !== 'true'); + return { hideSampleData, };