aboutsummaryrefslogtreecommitdiff
path: root/src-vue
diff options
context:
space:
mode:
Diffstat (limited to 'src-vue')
-rw-r--r--src-vue/src/App.vue1
-rw-r--r--src-vue/src/plugins/store.ts5
2 files changed, 6 insertions, 0 deletions
diff --git a/src-vue/src/App.vue b/src-vue/src/App.vue
index 239aa256..c8069bca 100644
--- a/src-vue/src/App.vue
+++ b/src-vue/src/App.vue
@@ -31,6 +31,7 @@ export default {
<el-tab-pane label="Changelog">Changelog</el-tab-pane>
<!-- <el-tab-pane label="Mods">Mods</el-tab-pane> -->
<el-tab-pane label="Settings">Settings</el-tab-pane>
+ <el-tab-pane v-if="$store.state.developer_mode" label="Dev">Developer tools</el-tab-pane>
</el-tabs>
<div id="fc_window__controls">
<el-button color="white" icon="SemiSelect" @click="minimize" circle />
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);
}