This commit is contained in:
2020-05-15 18:29:22 +00:00
parent 60f2511c5c
commit c866ad684f
4 changed files with 26 additions and 5 deletions

View File

@@ -10,7 +10,7 @@ Vue.use(Vuex);
export default new Vuex.Store({
plugins: [createPersistedState()],
state: {
openObject: {},
openObject: null,
lastClientVersion: "",
authenticated: false,
apiUrl: "",
@@ -128,6 +128,9 @@ export default new Vuex.Store({
//data should be format for open-object-handler
// { type: [AYATYPE], id: [RECORDID] }
state.openObject = data;
},
clearOpenObject(state) {
state.openObject = null;
}
},
actions: {}