aboutsummaryrefslogtreecommitdiff
path: root/src-vue
diff options
context:
space:
mode:
authorRemy Raes <raes.remy@gmail.com>2022-09-24 17:53:33 +0200
committerRemy Raes <raes.remy@gmail.com>2022-09-24 17:53:33 +0200
commit475fc7ceda3ff1fb28e54db96182fd921e1b11a5 (patch)
treea6a7381d2c3b494639d816dc74e329d25d2469bd /src-vue
parentf63550c030237729556be053750a52c033cd5926 (diff)
downloadFlightCore-475fc7ceda3ff1fb28e54db96182fd921e1b11a5.tar.gz
FlightCore-475fc7ceda3ff1fb28e54db96182fd921e1b11a5.zip
feat: add developer_mode variable
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);
}