page list instead of hoc withloadmore

This commit is contained in:
luce 2025-07-19 14:11:12 +02:00
commit c1f1e1acd4
9 changed files with 328 additions and 71 deletions

View file

@ -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()