diff options
author | Vincent Petry <vincent@nextcloud.com> | 2020-11-13 11:25:58 +0100 |
---|---|---|
committer | Vincent Petry <vincent@nextcloud.com> | 2020-11-13 17:17:40 +0100 |
commit | 3c2a274b198bd95ec33c1027438489c8612ba9f6 (patch) | |
tree | dea657f524c93ff6dafe84e5d3710ce6c35b20c6 /src/components/Quote.vue | |
parent | 75f9c9fb7b0cca355ebfcd2b63617ccfe6d5c77d (diff) |
Fix click quote in new message form
When clicking the quote in the new message form, the original message is
not properly focussed.
The issue was that the Quote component is used in two separate scenarios
and has inconsistent attributes (added FIXME to refactor that later).
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'src/components/Quote.vue')
-rw-r--r-- | src/components/Quote.vue | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/components/Quote.vue b/src/components/Quote.vue index d4f8abcfc..01cdecf76 100644 --- a/src/components/Quote.vue +++ b/src/components/Quote.vue @@ -214,7 +214,10 @@ export default { }, handleQuoteClick() { - EventBus.$emit('focusMessage', this.parentId) + // FIXME: unify quote attributes for the two use cases + // - "reply in message list" (this.parentId) and + // - "reply quote in new message" (this.id) + EventBus.$emit('focusMessage', this.parentId || this.id) }, }, } |