Rename loading set methods to "load"
Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
This commit is contained in:
@@ -79,8 +79,8 @@ export default {
|
||||
}
|
||||
},
|
||||
created: function() {
|
||||
this.$store.dispatch('setBoards')
|
||||
this.$store.dispatch('setSharees')
|
||||
this.$store.dispatch('loadBoards')
|
||||
this.$store.dispatch('loadSharees')
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -146,11 +146,11 @@ export default new Vuex.Store({
|
||||
removeBoard({ commit }, board) {
|
||||
commit('removeBoard', board)
|
||||
},
|
||||
async setBoards({ commit }) {
|
||||
async loadBoards({ commit }) {
|
||||
const boards = await apiClient.loadBoards()
|
||||
commit('setBoards', boards)
|
||||
},
|
||||
async setSharees({ commit }) {
|
||||
async loadSharees({ commit }) {
|
||||
const params = {
|
||||
format: 'json',
|
||||
perPage: 4,
|
||||
|
||||
Reference in New Issue
Block a user