Extract conversation and create conversation page.
This commit is contained in:
parent
ea25708bf3
commit
5ec4f1b047
5 changed files with 39 additions and 12 deletions
19
src/components/conversation-page/conversation-page.js
Normal file
19
src/components/conversation-page/conversation-page.js
Normal file
|
@ -0,0 +1,19 @@
|
|||
import Conversation from '../conversation/conversation.vue'
|
||||
import { find, toInteger } from 'lodash'
|
||||
|
||||
const conversationPage = {
|
||||
components: {
|
||||
Conversation
|
||||
},
|
||||
computed: {
|
||||
statusoid () {
|
||||
const id = toInteger(this.$route.params.id)
|
||||
const statuses = this.$store.state.statuses.allStatuses
|
||||
const status = find(statuses, {id})
|
||||
|
||||
return status
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export default conversationPage
|
Loading…
Add table
Add a link
Reference in a new issue