feat: allow customizing reply box

This commit is contained in:
Shivam Mishra 2025-05-15 17:06:20 +05:30
parent b74e78f698
commit 13f742fd68
No known key found for this signature in database
3 changed files with 17 additions and 1 deletions

View File

@ -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 {
<div class="flex justify-between p-3" :class="wrapClass">
<div class="left-wrap">
<NextButton
v-if="allowEmoji"
v-tooltip.top-end="$t('CONVERSATION.REPLYBOX.TIP_EMOJI_ICON')"
icon="i-ph-smiley-sticker"
slate

View File

@ -15,6 +15,10 @@ export default {
type: String,
default: REPLY_EDITOR_MODES.REPLY,
},
disablePopout: {
type: Boolean,
default: false,
},
isMessageLengthReachingThreshold: {
type: Boolean,
default: () => false,
@ -99,6 +103,7 @@ export default {
</div>
</div>
<NextButton
v-if="!disablePopout"
ghost
class="ltr:rounded-bl-md rtl:rounded-br-md ltr:rounded-br-none rtl:rounded-bl-none ltr:rounded-tl-none rtl:rounded-tr-none text-n-slate-11 ltr:rounded-tr-[11px] rtl:rounded-tl-[11px]"
icon="i-lucide-maximize-2"

View File

@ -1240,6 +1240,8 @@ export default {
:message="message"
:portal-slug="connectedPortalSlug"
:new-conversation-modal-active="newConversationModalActive"
allow-signature
allow-emoji
@select-whatsapp-template="openWhatsappTemplateModal"
@toggle-editor="toggleRichContentEditor"
@replace-text="replaceText"