StaffPanel: Move staff loading to panel creation.

This commit is contained in:
lain 2020-07-07 14:39:43 +02:00
parent bbb977a044
commit 431b3f527d
3 changed files with 9 additions and 1 deletions

View file

@ -2,6 +2,10 @@ import map from 'lodash/map'
import BasicUserCard from '../basic_user_card/basic_user_card.vue'
const StaffPanel = {
created() {
const nicknames = this.$store.state.instance.staffAccounts
nicknames.forEach(nickname => this.$store.dispatch('fetchUserIfMissing', nickname))
},
components: {
BasicUserCard
},