Skip to content

A platform for community discussion. Free, open, simple.

FIX: ChatComposerMessageDetails icon was always edit (#21340)

Jan Cernikbfd3bd551652
diff --git a/plugins/chat/assets/javascripts/discourse/components/chat-composer.hbs b/plugins/chat/assets/javascripts/discourse/components/chat-composer.hbs
index 01e41b2fb69..f81add49728 100644
--- a/plugins/chat/assets/javascripts/discourse/components/chat-composer.hbs
+++ b/plugins/chat/assets/javascripts/discourse/components/chat-composer.hbs
@@ -7,7 +7,7 @@
this.currentMessage
this.currentMessage.inReplyTo
}}
- @icon="pencil-alt"
+ @icon={{if this.currentMessage.editing "pencil-alt" "reply"}}
@cancelAction={{this.onCancel}}
/>
{{/if}}