From 89e007c4c324f11249d0aabe4a9004ea2eecd5cd Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Thu, 25 Jan 2024 11:00:03 +0530 Subject: [PATCH] feat: disable upload after one message --- .../widgets/WootWriter/ReplyBottomPanel.vue | 20 ++++++++++++++++--- .../widgets/conversation/ReplyBox.vue | 8 ++++++++ .../i18n/locale/en/conversation.json | 3 ++- 3 files changed, 27 insertions(+), 4 deletions(-) diff --git a/app/javascript/dashboard/components/widgets/WootWriter/ReplyBottomPanel.vue b/app/javascript/dashboard/components/widgets/WootWriter/ReplyBottomPanel.vue index 2984c506a..26b92bccf 100644 --- a/app/javascript/dashboard/components/widgets/WootWriter/ReplyBottomPanel.vue +++ b/app/javascript/dashboard/components/widgets/WootWriter/ReplyBottomPanel.vue @@ -13,12 +13,17 @@ /> 0; + } + + return false; + }, enableMultipleFileUpload() { return ( this.isAnEmailChannel || diff --git a/app/javascript/dashboard/i18n/locale/en/conversation.json b/app/javascript/dashboard/i18n/locale/en/conversation.json index 227c802d6..c4d2e44e6 100644 --- a/app/javascript/dashboard/i18n/locale/en/conversation.json +++ b/app/javascript/dashboard/i18n/locale/en/conversation.json @@ -148,6 +148,7 @@ "TIP_FORMAT_ICON": "Show rich text editor", "TIP_EMOJI_ICON": "Show emoji selector", "TIP_ATTACH_ICON": "Attach files", + "TIP_ATTACHMENT_LIMIT_FB": "You cannot attach more files to this message", "TIP_AUDIORECORDER_ICON": "Record audio", "TIP_AUDIORECORDER_PERMISSION": "Allow access to audio", "TIP_AUDIORECORDER_ERROR": "Could not open the audio", @@ -323,4 +324,4 @@ "TRANSLATED_CONTENT": "Translated Content", "NO_TRANSLATIONS_AVAILABLE": "No translations are available for this content" } -} +} \ No newline at end of file