aboutsummaryrefslogtreecommitdiff
path: root/src/components/status_popover/status_popover.js
diff options
context:
space:
mode:
authortaehoon <th.dev91@gmail.com>2019-10-24 22:21:33 -0400
committertaehoon <th.dev91@gmail.com>2019-10-24 22:21:33 -0400
commitf969e9ab3d08f0b8cf6b5201094243feff6fc3d0 (patch)
tree29767360bb47d860876e0ce5e675fdca665afbe4 /src/components/status_popover/status_popover.js
parente00cf288f54936fc563d2baebf2a694cc3619f61 (diff)
add fetchStatus action
Diffstat (limited to 'src/components/status_popover/status_popover.js')
-rw-r--r--src/components/status_popover/status_popover.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/components/status_popover/status_popover.js b/src/components/status_popover/status_popover.js
index b96ae642..19f16bd9 100644
--- a/src/components/status_popover/status_popover.js
+++ b/src/components/status_popover/status_popover.js
@@ -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)
}
}
}