diff --git a/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue b/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue index cedf502a6..3db4779b0 100644 --- a/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue +++ b/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue @@ -15,7 +15,7 @@ import ReplyEmailHead from './ReplyEmailHead.vue'; import ReplyBottomPanel from 'dashboard/components/widgets/WootWriter/ReplyBottomPanel.vue'; import ArticleSearchPopover from 'dashboard/routes/dashboard/helpcenter/components/ArticleSearch/SearchPopover.vue'; import MessageSignatureMissingAlert from './MessageSignatureMissingAlert.vue'; -import Banner from 'dashboard/components/ui/Banner.vue'; +import ReplyBoxBanner from './ReplyBoxBanner.vue'; import { REPLY_EDITOR_MODES } from 'dashboard/components/widgets/WootWriter/constants'; import WootMessageEditor from 'dashboard/components/widgets/WootWriter/Editor.vue'; import AudioRecorder from 'dashboard/components/widgets/WootWriter/AudioRecorder.vue'; @@ -53,8 +53,8 @@ export default { ArticleSearchPopover, AttachmentPreview, AudioRecorder, - Banner, CannedResponse, + ReplyBoxBanner, EmojiInput, MessageSignatureMissingAlert, ReplyBottomPanel, @@ -158,35 +158,6 @@ export default { return false; }, - assignedAgent: { - get() { - return this.currentChat.meta.assignee; - }, - set(agent) { - const agentId = agent ? agent.id : 0; - this.$store.dispatch('setCurrentChatAssignee', agent); - this.$store - .dispatch('assignAgent', { - conversationId: this.currentChat.id, - agentId, - }) - .then(() => { - useAlert(this.$t('CONVERSATION.CHANGE_AGENT')); - }); - }, - }, - showSelfAssignBanner() { - if (this.message !== '' && !this.isOnPrivateNote) { - if (!this.assignedAgent) { - return true; - } - if (this.assignedAgent.id !== this.currentUser.id) { - return true; - } - } - - return false; - }, showWhatsappTemplates() { return this.isAWhatsAppCloudChannel && !this.isPrivate; }, @@ -671,29 +642,6 @@ export default { hideContentTemplatesModal() { this.showContentTemplatesModal = false; }, - onClickSelfAssign() { - const { - account_id, - availability_status, - available_name, - email, - id, - name, - role, - avatar_url, - } = this.currentUser; - const selfAssign = { - account_id, - availability_status, - available_name, - email, - id, - name, - role, - thumbnail: avatar_url, - }; - this.assignedAgent = selfAssign; - }, confirmOnSendReply() { if (this.isReplyButtonDisabled) { return; @@ -1118,16 +1066,7 @@ export default {