-export default {
- props: {
- contentAttributes: {
- type: Object,
- default: () => ({}),
- },
- content: {
- type: String,
- default: '',
- },
- },
- emits: ['close'],
- computed: {
- translationsAvailable() {
- return !!Object.keys(this.translations).length;
- },
- translations() {
- return this.contentAttributes.translations || {};
- },
- },
- methods: {
- onClose() {
- this.$emit('close');
- },
- },
-};
-
-
-
-
-
-
- {{ $t('TRANSLATE_MODAL.ORIGINAL_CONTENT') }}
-
-
-
-
-
-
- {{ $t('TRANSLATE_MODAL.TRANSLATED_CONTENT') }}
-
-
-
- {{ language }}:
-
-
-
-
-
-
- {{ $t('TRANSLATE_MODAL.NO_TRANSLATIONS_AVAILABLE') }}
-
-
-
-
diff --git a/app/javascript/dashboard/i18n/locale/en/conversation.json b/app/javascript/dashboard/i18n/locale/en/conversation.json
index faa78c8a7..2847f4821 100644
--- a/app/javascript/dashboard/i18n/locale/en/conversation.json
+++ b/app/javascript/dashboard/i18n/locale/en/conversation.json
@@ -12,6 +12,8 @@
"NO_INBOX_2": " to get started",
"NO_INBOX_AGENT": "Uh Oh! Looks like you are not part of any inbox. Please contact your administrator",
"SEARCH_MESSAGES": "Search for messages in conversations",
+ "VIEW_ORIGINAL": "View original",
+ "VIEW_TRANSLATED": "View translated",
"EMPTY_STATE": {
"CMD_BAR": "to open command menu",
"KEYBOARD_SHORTCUTS": "to view keyboard shortcuts"
diff --git a/app/javascript/dashboard/modules/conversations/components/MessageContextMenu.vue b/app/javascript/dashboard/modules/conversations/components/MessageContextMenu.vue
index f5688c0bb..ca8a28f5c 100644
--- a/app/javascript/dashboard/modules/conversations/components/MessageContextMenu.vue
+++ b/app/javascript/dashboard/modules/conversations/components/MessageContextMenu.vue
@@ -11,14 +11,12 @@ import {
ACCOUNT_EVENTS,
CONVERSATION_EVENTS,
} from '../../../helper/AnalyticsHelper/events';
-import TranslateModal from 'dashboard/components/widgets/conversation/bubble/TranslateModal.vue';
import MenuItem from '../../../components/widgets/conversation/contextMenu/menuItem.vue';
import { useTrack } from 'dashboard/composables';
export default {
components: {
AddCannedModal,
- TranslateModal,
MenuItem,
ContextMenu,
},
@@ -54,7 +52,6 @@ export default {
data() {
return {
isCannedResponseModalOpen: false,
- showTranslateModal: false,
showDeleteModal: false,
};
},
@@ -125,15 +122,11 @@ export default {
});
useTrack(CONVERSATION_EVENTS.TRANSLATE_A_MESSAGE);
this.handleClose();
- this.showTranslateModal = true;
},
handleReplyTo() {
this.$emit('replyTo', this.message);
this.handleClose();
},
- onCloseTranslateModal() {
- this.showTranslateModal = false;
- },
openDeleteModal() {
this.handleClose();
this.showDeleteModal = true;
@@ -170,13 +163,6 @@ export default {
:on-close="hideCannedResponseModal"
/>
-
-