add fetchStatus action

This commit is contained in:
taehoon 2019-10-24 22:21:33 -04:00
parent e00cf288f5
commit f969e9ab3d
2 changed files with 5 additions and 4 deletions

View file

@ -25,10 +25,7 @@ const StatusPopover = {
methods: {
enter () {
if (!this.status) {
this.$store.state.api.backendInteractor.fetchStatus({ id: this.statusId })
.then((status) => {
this.$store.dispatch('addNewStatuses', { statuses: [status] })
})
this.$store.dispatch('fetchStatus', this.statusId)
}
}
}