page list instead of hoc withloadmore
This commit is contained in:
parent
889e458fb1
commit
c1f1e1acd4
9 changed files with 328 additions and 71 deletions
|
|
@ -60,8 +60,12 @@ const adminSettingsStorage = {
|
|||
}
|
||||
},
|
||||
actions: {
|
||||
fetchAdminUsers (store) {
|
||||
store.rootState.api.backendInteractor.adminListUsers().then((users) => users.forEach(user => store.dispatch('fetchUserIfMissing', user.id)))
|
||||
async fetchAdminUsers (store, opts) {
|
||||
const users = await store.rootState.api.backendInteractor.adminListUsers({opts})
|
||||
//await Promise.all(
|
||||
users.map(user => store.dispatch('fetchUserIfMissing', user.id))
|
||||
//)
|
||||
return users
|
||||
},
|
||||
loadFrontendsStuff ({ rootState, commit }) {
|
||||
rootState.api.backendInteractor.fetchAvailableFrontends()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue