This commit is contained in:
portree_kid
2019-12-29 21:02:01 +01:00
parent 40df1f1202
commit 819aadc349
20 changed files with 623 additions and 242 deletions
+25
View File
@@ -0,0 +1,25 @@
const state = {
type: 'airport',
data: Object
}
const SET_EDIT_AIRPORT = 'SET_EDIT_AIRPORT'
const mutations = {
SET_EDIT_AIRPORT (state, airport) {
state.data = airport
state.type = 'airport'
}
}
const actions = {
async setAirport (context, airport) {
context.commit(SET_EDIT_AIRPORT, airport)
}
}
export default {
state,
mutations,
actions
}