refactor: vue fixes + modal-upgrade-system.vue

This commit is contained in:
NGPixel
2017-06-10 10:41:15 -04:00
parent 5a8c5237af
commit 28fb2aee70
14 changed files with 130 additions and 68 deletions

View File

@@ -1,6 +1,7 @@
'use strict'
export default {
namespaced: true,
state: {
shown: false,
hash: ''
@@ -13,10 +14,11 @@ export default {
}
},
actions: {
anchorOpen({ commit, dispatch }, hash) {
open({ commit }, hash) {
console.info('MIGUEL!')
commit('anchorChange', { shown: true, hash })
},
anchorClose({ commit, dispatch }) {
close({ commit }) {
commit('anchorChange', { shown: false })
}
}