diff options
| author | dave <starpumadev@gmail.com> | 2019-03-11 10:52:28 -0400 |
|---|---|---|
| committer | dave <starpumadev@gmail.com> | 2019-03-11 10:52:28 -0400 |
| commit | 4f455eefe5af2914d7dece40e027ed35ec8a21b3 (patch) | |
| tree | 4a69d4c6c5b65ef650ee951a70a61a1a80da6562 /src/components/status_or_conversation | |
| parent | 09736691ea79e66c9e41d6f723384769088eb2d0 (diff) | |
#433: do not remove the reply dialog
Diffstat (limited to 'src/components/status_or_conversation')
| -rw-r--r-- | src/components/status_or_conversation/status_or_conversation.js | 6 | ||||
| -rw-r--r-- | src/components/status_or_conversation/status_or_conversation.vue | 20 |
2 files changed, 23 insertions, 3 deletions
diff --git a/src/components/status_or_conversation/status_or_conversation.js b/src/components/status_or_conversation/status_or_conversation.js index 441552ca..749f7665 100644 --- a/src/components/status_or_conversation/status_or_conversation.js +++ b/src/components/status_or_conversation/status_or_conversation.js @@ -5,7 +5,8 @@ const statusOrConversation = { props: ['statusoid'], data () { return { - expanded: false + expanded: false, + replying: false } }, components: { @@ -15,6 +16,9 @@ const statusOrConversation = { methods: { toggleExpanded () { this.expanded = !this.expanded + }, + toggleReplying () { + this.replying = !this.replying } } } diff --git a/src/components/status_or_conversation/status_or_conversation.vue b/src/components/status_or_conversation/status_or_conversation.vue index 9647d5eb..43a60c3a 100644 --- a/src/components/status_or_conversation/status_or_conversation.vue +++ b/src/components/status_or_conversation/status_or_conversation.vue @@ -1,7 +1,23 @@ <template> <div> - <conversation v-if="expanded" @toggleExpanded="toggleExpanded" :collapsable="true" :statusoid="statusoid"></conversation> - <status v-if="!expanded" @toggleExpanded="toggleExpanded" :expandable="true" :inConversation="false" :focused="false" :statusoid="statusoid"></status> + <conversation + v-if="expanded" + @toggleExpanded="toggleExpanded" + @toggleReplying="toggleReplying" + :replying="replying" + :collapsable="true" + :statusoid="statusoid" + /> + <status + v-else + @toggleExpanded="toggleExpanded" + @toggleReplying="toggleReplying" + :replying="replying" + :expandable="true" + :inConversation="false" + :focused="false" + :statusoid="statusoid" + /> </div> </template> |
