-
+
+
+
+ {{ $t('CONVERSATION.SIDEBAR.ACTIONS') }}
+
+
+
+
+
+
diff --git a/app/javascript/dashboard/components/widgets/conversation/MessagesView.vue b/app/javascript/dashboard/components/widgets/conversation/MessagesView.vue
index 4f2773982..1c0b3fd49 100644
--- a/app/javascript/dashboard/components/widgets/conversation/MessagesView.vue
+++ b/app/javascript/dashboard/components/widgets/conversation/MessagesView.vue
@@ -38,8 +38,6 @@ import { LOCAL_STORAGE_KEYS } from 'dashboard/constants/localStorage';
import { FEATURE_FLAGS } from '../../../featureFlags';
import { INBOX_TYPES } from 'dashboard/helper/inbox';
-import NextButton from 'dashboard/components-next/button/Button.vue';
-
export default {
components: {
Message,
@@ -47,20 +45,8 @@ export default {
ReplyBox,
Banner,
ConversationLabelSuggestion,
- NextButton,
},
mixins: [inboxMixin],
- props: {
- isContactPanelOpen: {
- type: Boolean,
- default: false,
- },
- isInboxView: {
- type: Boolean,
- default: false,
- },
- },
- emits: ['contactPanelToggle'],
setup() {
const isPopOutReplyBox = ref(false);
const { isEnterprise } = useConfig();
@@ -199,12 +185,6 @@ export default {
isATweet() {
return this.conversationType === 'tweet';
},
- isRightOrLeftIcon() {
- if (this.isContactPanelOpen) {
- return 'arrow-chevron-right';
- }
- return 'arrow-chevron-left';
- },
getLastSeenAt() {
const { contact_last_seen_at: contactLastSeenAt } = this.currentChat;
return contactLastSeenAt;
@@ -440,9 +420,6 @@ export default {
relevantMessages
);
},
- onToggleContactPanel() {
- this.$emit('contactPanelToggle');
- },
setScrollParams() {
this.heightBeforeLoad = this.conversationPanel.scrollHeight;
this.scrollTopBeforeLoad = this.conversationPanel.scrollTop;
diff --git a/app/javascript/dashboard/i18n/locale/en/conversation.json b/app/javascript/dashboard/i18n/locale/en/conversation.json
index da2f64b01..1e91cabe7 100644
--- a/app/javascript/dashboard/i18n/locale/en/conversation.json
+++ b/app/javascript/dashboard/i18n/locale/en/conversation.json
@@ -234,8 +234,7 @@
}
},
"SIDEBAR": {
- "CONTACT": "Contact",
- "COPILOT": "Copilot"
+ "ACTIONS": "Actions"
}
},
"EMAIL_TRANSCRIPT": {
diff --git a/app/javascript/dashboard/routes/dashboard/conversation/ContactPanel.vue b/app/javascript/dashboard/routes/dashboard/conversation/ContactPanel.vue
index 1e6479934..571e2c8f8 100644
--- a/app/javascript/dashboard/routes/dashboard/conversation/ContactPanel.vue
+++ b/app/javascript/dashboard/routes/dashboard/conversation/ContactPanel.vue
@@ -29,10 +29,6 @@ const props = defineProps({
type: Number,
default: undefined,
},
- onToggle: {
- type: Function,
- default: () => {},
- },
});
const {
@@ -89,8 +85,6 @@ watch(conversationId, (newConversationId, prevConversationId) => {
watch(contactId, getContactDetails);
-const onPanelToggle = props.onToggle;
-
const onDragEnd = () => {
dragging.value = false;
updateUISettings({
@@ -107,11 +101,7 @@ onMounted(() => {
-
+
+
diff --git a/app/javascript/dashboard/store/modules/uiState.js b/app/javascript/dashboard/store/modules/uiState.js
index 71ff81595..2c8d16195 100644
--- a/app/javascript/dashboard/store/modules/uiState.js
+++ b/app/javascript/dashboard/store/modules/uiState.js
@@ -1,6 +1,6 @@
const initialState = {
isCopilotSidebarOpen: false,
- // Add more UI settings here as needed
+ isConversationSidebarOpen: true,
};
const types = {