From 13f742fd68c2825c19e13e9de003fe65239e3948 Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Thu, 15 May 2025 17:06:20 +0530 Subject: [PATCH] feat: allow customizing reply box --- .../widgets/WootWriter/ReplyBottomPanel.vue | 11 ++++++++++- .../components/widgets/WootWriter/ReplyTopPanel.vue | 5 +++++ .../components/widgets/conversation/ReplyBox.vue | 2 ++ 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/app/javascript/dashboard/components/widgets/WootWriter/ReplyBottomPanel.vue b/app/javascript/dashboard/components/widgets/WootWriter/ReplyBottomPanel.vue index 47fe01e9ce3..ad9661ea721 100644 --- a/app/javascript/dashboard/components/widgets/WootWriter/ReplyBottomPanel.vue +++ b/app/javascript/dashboard/components/widgets/WootWriter/ReplyBottomPanel.vue @@ -118,6 +118,14 @@ export default { type: String, default: '', }, + allowSignature: { + type: Boolean, + default: false, + }, + allowEmoji: { + type: Boolean, + default: false, + }, }, emits: [ 'replaceText', @@ -225,7 +233,7 @@ export default { } }, showMessageSignatureButton() { - return !this.isOnPrivateNote; + return !this.isOnPrivateNote && this.allowSignature; }, sendWithSignature() { // channelType is sourced from inboxMixin @@ -264,6 +272,7 @@ export default {
false, @@ -99,6 +103,7 @@ export default {