Apply 15 suggestion(s) to 7 file(s)
Co-authored-by: HJ <30-hj@users.noreply.git.pleroma.social>
This commit is contained in:
parent
d7f4a424ea
commit
138dc71b9f
7 changed files with 4 additions and 21 deletions
|
|
@ -57,14 +57,12 @@ const adminSettingsStorage = {
|
|||
},
|
||||
resetAdminDraft (state) {
|
||||
state.draft = cloneDeep(state.config)
|
||||
},
|
||||
}
|
||||
},
|
||||
actions: {
|
||||
async fetchAdminUsers (store, opts) {
|
||||
const users = await store.rootState.api.backendInteractor.adminListUsers({opts})
|
||||
//await Promise.all(
|
||||
users.map(user => store.dispatch('fetchUserIfMissing', user.id))
|
||||
//)
|
||||
users.forEach(user => store.dispatch('fetchUserIfMissing', user.id))
|
||||
return users
|
||||
},
|
||||
adminAddUserToAdminGroup (store, user) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue