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() {
|
created: function() {
|
||||||
this.$store.dispatch('setBoards')
|
this.$store.dispatch('loadBoards')
|
||||||
this.$store.dispatch('setSharees')
|
this.$store.dispatch('loadSharees')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -146,11 +146,11 @@ export default new Vuex.Store({
|
|||||||
removeBoard({ commit }, board) {
|
removeBoard({ commit }, board) {
|
||||||
commit('removeBoard', board)
|
commit('removeBoard', board)
|
||||||
},
|
},
|
||||||
async setBoards({ commit }) {
|
async loadBoards({ commit }) {
|
||||||
const boards = await apiClient.loadBoards()
|
const boards = await apiClient.loadBoards()
|
||||||
commit('setBoards', boards)
|
commit('setBoards', boards)
|
||||||
},
|
},
|
||||||
async setSharees({ commit }) {
|
async loadSharees({ commit }) {
|
||||||
const params = {
|
const params = {
|
||||||
format: 'json',
|
format: 'json',
|
||||||
perPage: 4,
|
perPage: 4,
|
||||||
|
|||||||
Reference in New Issue
Block a user