StaffPanel: Move staff loading to panel creation.
This commit is contained in:
parent
bbb977a044
commit
431b3f527d
3 changed files with 9 additions and 1 deletions
|
@ -266,6 +266,11 @@ const users = {
|
|||
mutations,
|
||||
getters,
|
||||
actions: {
|
||||
fetchUserIfMissing (store, id) {
|
||||
if (!store.getters.findUser(id)) {
|
||||
store.dispatch('fetchUser', id)
|
||||
}
|
||||
},
|
||||
fetchUser (store, id) {
|
||||
return store.rootState.api.backendInteractor.fetchUser({ id })
|
||||
.then((user) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue