Modularized store

This commit is contained in:
portree_kid
2019-12-22 18:27:21 +01:00
parent 791ec7ae24
commit 40df1f1202
3 changed files with 19 additions and 35 deletions
+1 -7
View File
@@ -33,20 +33,14 @@
}
},
methods: {
buttonClick: function () {
this.$store.commit('TOGGLE_HYDRATED')
},
directorySelect: function (flightgearDirectory) {
console.log(flightgearDirectory)
this.$store.commit('SETTINGS_DIRECTORY', flightgearDirectory.path)
}
},
computed: {
hydrated: function () {
return this.$store.state.hydrated
},
flightgear_directory: function () {
return this.$store.state.settings.flightgearDirectory
return this.$store.state.Settings.settings.flightgearDirectory
}
}
}