aboutsummaryrefslogtreecommitdiff
path: root/src-vue/src/plugins
diff options
context:
space:
mode:
authorRemy Raes <raes.remy@gmail.com>2022-09-24 22:16:03 +0200
committerRemy Raes <raes.remy@gmail.com>2022-09-24 22:16:05 +0200
commit8b96f540dd5b8549f737df74e9d5a8e52ff15c70 (patch)
tree0d6446d4d4f7f783a8c9971bfadf42dc801be77f /src-vue/src/plugins
parenta2f3766bfef81525b719013c880c3a116ebb5eb4 (diff)
downloadFlightCore-8b96f540dd5b8549f737df74e9d5a8e52ff15c70.tar.gz
FlightCore-8b96f540dd5b8549f737df74e9d5a8e52ff15c70.zip
feat: add a "see patch notes" link to main view
Diffstat (limited to 'src-vue/src/plugins')
-rw-r--r--src-vue/src/plugins/store.ts17
1 files changed, 11 insertions, 6 deletions
diff --git a/src-vue/src/plugins/store.ts b/src-vue/src/plugins/store.ts
index 5bc12c1b..f2d42e13 100644
--- a/src-vue/src/plugins/store.ts
+++ b/src-vue/src/plugins/store.ts
@@ -1,16 +1,18 @@
import { createStore } from 'vuex';
import { listen, Event as TauriEvent } from "@tauri-apps/api/event";
+import {Tabs} from "../utils/Tabs";
export const store = createStore({
state () {
- return {
- developer_mode: false,
+ return {
+ current_tab: Tabs.PLAY,
+ developer_mode: false,
- installed_northstar_version: "1.9.7",
+ installed_northstar_version: "1.9.7",
- northstar_is_running: false,
- origin_is_running: false
- }
+ northstar_is_running: false,
+ origin_is_running: false
+ }
},
mutations: {
toggleDeveloperMode(state) {
@@ -18,6 +20,9 @@ export const store = createStore({
},
initializeListeners(state) {
_initializeListeners(state);
+ },
+ updateCurrentTab(state: any, newTab: Tabs) {
+ state.current_tab = newTab;
}
}
});