diff options
author | Remy Raes <raes.remy@gmail.com> | 2022-09-24 17:53:33 +0200 |
---|---|---|
committer | Remy Raes <raes.remy@gmail.com> | 2022-09-24 17:53:33 +0200 |
commit | 475fc7ceda3ff1fb28e54db96182fd921e1b11a5 (patch) | |
tree | a6a7381d2c3b494639d816dc74e329d25d2469bd /src-vue/src/plugins | |
parent | f63550c030237729556be053750a52c033cd5926 (diff) | |
download | FlightCore-475fc7ceda3ff1fb28e54db96182fd921e1b11a5.tar.gz FlightCore-475fc7ceda3ff1fb28e54db96182fd921e1b11a5.zip |
feat: add developer_mode variable
Diffstat (limited to 'src-vue/src/plugins')
-rw-r--r-- | src-vue/src/plugins/store.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src-vue/src/plugins/store.ts b/src-vue/src/plugins/store.ts index 551f279e..226adafe 100644 --- a/src-vue/src/plugins/store.ts +++ b/src-vue/src/plugins/store.ts @@ -4,6 +4,8 @@ import { listen, Event as TauriEvent } from "@tauri-apps/api/event"; export const store = createStore({ state () { return { + developer_mode: false, + installed_northstar_version: "1.9.7", northstar_is_running: false, @@ -11,6 +13,9 @@ export const store = createStore({ } }, mutations: { + toggleDeveloperMode(state) { + state.developer_mode = !state.developer_mode; + }, initializeListeners(state) { _initializeListeners(state); } |