refactor: alerts + admin profile + user create dialog as Vue components

This commit is contained in:
NGPixel
2017-05-21 16:43:58 -04:00
parent c20c935fa5
commit 6814c952bf
15 changed files with 364 additions and 272 deletions

25
client/js/store/index.js Normal file
View File

@@ -0,0 +1,25 @@
import Vue from 'vue'
import Vuex from 'vuex'
import alert from './modules/alert'
import adminUsersCreate from './modules/admin-users-create'
Vue.use(Vuex)
export default new Vuex.Store({
state: {
loading: false
},
mutations: {
loadingChange: (state, loadingState) => { state.loading = loadingState }
},
actions: {
startLoading({ commit }) { commit('loadingChange', true) },
stopLoading({ commit }) { commit('loadingChange', false) }
},
getters: {},
modules: {
alert,
adminUsersCreate
}
})