Extract conversation and create conversation page.
This commit is contained in:
parent
ea25708bf3
commit
5ec4f1b047
5 changed files with 39 additions and 12 deletions
|
@ -1,4 +1,4 @@
|
|||
import { find, filter, sortBy, toInteger } from 'lodash'
|
||||
import { filter, sortBy } from 'lodash'
|
||||
import { statusType } from '../../modules/statuses.js'
|
||||
import Status from '../status/status.vue'
|
||||
|
||||
|
@ -8,14 +8,12 @@ const sortAndFilterConversation = (conversation) => {
|
|||
}
|
||||
|
||||
const conversation = {
|
||||
props: [
|
||||
'statusoid',
|
||||
'collapsable'
|
||||
],
|
||||
computed: {
|
||||
status () {
|
||||
const id = toInteger(this.$route.params.id)
|
||||
const statuses = this.$store.state.statuses.allStatuses
|
||||
const status = find(statuses, {id})
|
||||
|
||||
return status
|
||||
},
|
||||
status () { return this.statusoid },
|
||||
conversation () {
|
||||
if (!this.status) {
|
||||
return false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue