This commit is contained in:
@@ -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: {}
|
||||
|
||||
Reference in New Issue
Block a user