From f969e9ab3d08f0b8cf6b5201094243feff6fc3d0 Mon Sep 17 00:00:00 2001 From: taehoon Date: Thu, 24 Oct 2019 22:21:33 -0400 Subject: add fetchStatus action --- src/components/status_popover/status_popover.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/components/status_popover/status_popover.js') 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) } } } -- cgit v1.2.3-70-g09d2