diff options
Diffstat (limited to 'src/components/conversation-page')
| -rw-r--r-- | src/components/conversation-page/conversation-page.js | 19 | ||||
| -rw-r--r-- | src/components/conversation-page/conversation-page.vue | 5 |
2 files changed, 24 insertions, 0 deletions
diff --git a/src/components/conversation-page/conversation-page.js b/src/components/conversation-page/conversation-page.js new file mode 100644 index 00000000..beffa5bb --- /dev/null +++ b/src/components/conversation-page/conversation-page.js @@ -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 diff --git a/src/components/conversation-page/conversation-page.vue b/src/components/conversation-page/conversation-page.vue new file mode 100644 index 00000000..b03eea28 --- /dev/null +++ b/src/components/conversation-page/conversation-page.vue @@ -0,0 +1,5 @@ +<template> + <conversation :collapsable="false" :statusoid="statusoid"></conversation> +</template> + +<script src="./conversation-page.js"></script> |
