aboutsummaryrefslogtreecommitdiff
path: root/src-vue/src/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'src-vue/src/plugins')
-rw-r--r--src-vue/src/plugins/store.ts5
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);
}