Skip to content

Commit

Permalink
refactor: set explorer mode feature flag as store getter #403
Browse files Browse the repository at this point in the history
  • Loading branch information
wazolab committed Oct 28, 2024
1 parent b5b05e7 commit 18385f8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions stores/site.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ export const siteStore = defineStore('site', {
contents: undefined,
translations: undefined,
}),
getters: {
explorerModeEnabled: (state: State) => state.settings?.themes[0]?.explorer_mode || true,
},
actions: {
async init(headers: Record<string, string>) {
this.config = vidoConfig(headers)
Expand Down

0 comments on commit 18385f8

Please sign in to comment.