Fix status show component's name
This commit is contained in:
parent
1c2691478b
commit
a936dfb1e1
2 changed files with 7 additions and 7 deletions
|
@ -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) {
|
optionPercent(poll, pollOption) {
|
||||||
const allVotes = poll.options.reduce((acc, option) => (acc + option.votes_count), 0)
|
const allVotes = poll.options.reduce((acc, option) => (acc + option.votes_count), 0)
|
||||||
if (allVotes === 0) {
|
if (allVotes === 0) {
|
||||||
|
@ -220,12 +226,6 @@ export default {
|
||||||
},
|
},
|
||||||
parseTimestamp(timestamp) {
|
parseTimestamp(timestamp) {
|
||||||
return moment(timestamp).format('YYYY-MM-DD HH:mm')
|
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 }})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -62,7 +62,7 @@ import RebootButton from '@/components/RebootButton'
|
||||||
import ResetPasswordDialog from '@/views/users/components/ResetPasswordDialog'
|
import ResetPasswordDialog from '@/views/users/components/ResetPasswordDialog'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'UsersShow',
|
name: 'StatusShow',
|
||||||
components: { ModerationDropdown, RebootButton, ResetPasswordDialog, Status },
|
components: { ModerationDropdown, RebootButton, ResetPasswordDialog, Status },
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Reference in a new issue