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 {