akkoma-fe/src/components/staff_panel/staff_panel.js

16 lines
359 B
JavaScript
Raw Normal View History

import map from 'lodash/map'
2019-11-09 05:21:07 +00:00
import BasicUserCard from '../basic_user_card/basic_user_card.vue'
const StaffPanel = {
components: {
BasicUserCard
},
computed: {
2019-11-09 06:23:22 +00:00
staffAccounts () {
return map(this.$store.state.instance.staffAccounts, nickname => this.$store.getters.findUser(nickname)).filter(_ => _)
2019-11-09 05:21:07 +00:00
}
}
}
export default StaffPanel