From a936dfb1e148fed421afcf731ca50ad3004daf43 Mon Sep 17 00:00:00 2001 From: Angelina Filippova Date: Sun, 24 May 2020 20:09:53 +0300 Subject: [PATCH] Fix status show component's name --- src/components/Status/index.vue | 12 ++++++------ src/views/statuses/show.vue | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/components/Status/index.vue b/src/components/Status/index.vue index 3b19204b..2e918cc7 100644 --- a/src/components/Status/index.vue +++ b/src/components/Status/index.vue @@ -211,6 +211,12 @@ export default { }) }) }, + handleStatusSelection(account) { + this.$emit('status-selection', account) + }, + handleRouteChange() { + this.$router.push({ name: 'StatusShow', params: { id: this.status.id }}) + }, optionPercent(poll, pollOption) { const allVotes = poll.options.reduce((acc, option) => (acc + option.votes_count), 0) if (allVotes === 0) { @@ -220,12 +226,6 @@ export default { }, parseTimestamp(timestamp) { return moment(timestamp).format('YYYY-MM-DD HH:mm') - }, - handleStatusSelection(account) { - this.$emit('status-selection', account) - }, - handleRouteChange() { - this.$router.push({ name: 'StatusShow', params: { id: this.status.id }}) } } } diff --git a/src/views/statuses/show.vue b/src/views/statuses/show.vue index ea5a114a..29845e69 100644 --- a/src/views/statuses/show.vue +++ b/src/views/statuses/show.vue @@ -62,7 +62,7 @@ import RebootButton from '@/components/RebootButton' import ResetPasswordDialog from '@/views/users/components/ResetPasswordDialog' export default { - name: 'UsersShow', + name: 'StatusShow', components: { ModerationDropdown, RebootButton, ResetPasswordDialog, Status }, data() { return {