diff options
| author | taehoon <th.dev91@gmail.com> | 2019-08-30 11:47:15 -0400 |
|---|---|---|
| committer | taehoon <th.dev91@gmail.com> | 2019-09-06 11:17:04 -0400 |
| commit | d7c68d408f07e997457798d4e8902338877f4223 (patch) | |
| tree | e988608a54df33b06013d16f7d461821a8d10ff5 /src/components/conversation-page | |
| parent | e75ac9ddbc66a7e3cd40ef130b26b06b8cec9f1d (diff) | |
accept status id instead of status obj as statusoid prop
Diffstat (limited to 'src/components/conversation-page')
| -rw-r--r-- | src/components/conversation-page/conversation-page.js | 8 | ||||
| -rw-r--r-- | src/components/conversation-page/conversation-page.vue | 2 |
2 files changed, 3 insertions, 7 deletions
diff --git a/src/components/conversation-page/conversation-page.js b/src/components/conversation-page/conversation-page.js index 1da70ce9..8f996be1 100644 --- a/src/components/conversation-page/conversation-page.js +++ b/src/components/conversation-page/conversation-page.js @@ -5,12 +5,8 @@ const conversationPage = { Conversation }, computed: { - statusoid () { - const id = this.$route.params.id - const statuses = this.$store.state.statuses.allStatusesObject - const status = statuses[id] - - return status + statusId () { + return this.$route.params.id } } } diff --git a/src/components/conversation-page/conversation-page.vue b/src/components/conversation-page/conversation-page.vue index 532f785c..3db63343 100644 --- a/src/components/conversation-page/conversation-page.vue +++ b/src/components/conversation-page/conversation-page.vue @@ -2,7 +2,7 @@ <conversation :collapsable="false" is-page="true" - :statusoid="statusoid" + :statusoid="statusId" /> </template> |
