@@ -49,7 +57,16 @@ export default {
ResolveButton,
},
- props: ['chat'],
+ props: {
+ chat: {
+ type: Object,
+ default: () => {},
+ },
+ isContactPanelOpen: {
+ type: Boolean,
+ default: false,
+ },
+ },
data() {
return {
@@ -75,6 +92,9 @@ export default {
...this.agents,
];
},
+ viewProfileButtonLabel() {
+ return `${this.isContactPanelOpen ? 'Hide' : 'View'} Profile`;
+ },
},
methods: {
@@ -89,9 +109,7 @@ export default {
});
},
- removeAgent(agent) {
- console.log(agent.email);
- },
+ removeAgent() {},
},
};
diff --git a/app/javascript/dashboard/routes/dashboard/conversation/ContactPanel.vue b/app/javascript/dashboard/routes/dashboard/conversation/ContactPanel.vue
new file mode 100644
index 000000000..8c8b5a877
--- /dev/null
+++ b/app/javascript/dashboard/routes/dashboard/conversation/ContactPanel.vue
@@ -0,0 +1,49 @@
+
+
+
+
+ {{ contact.name }}
+
+
+
+
+
+
+
diff --git a/app/javascript/dashboard/routes/dashboard/conversation/ConversationView.vue b/app/javascript/dashboard/routes/dashboard/conversation/ConversationView.vue
index 8dd0160d6..f35879d16 100644
--- a/app/javascript/dashboard/routes/dashboard/conversation/ConversationView.vue
+++ b/app/javascript/dashboard/routes/dashboard/conversation/ConversationView.vue
@@ -1,7 +1,17 @@
@@ -11,17 +21,20 @@
import { mapGetters } from 'vuex';
import ChatList from '../../../components/ChatList';
+import ContactPanel from './ContactPanel';
import ConversationBox from '../../../components/widgets/conversation/ConversationBox';
export default {
components: {
ChatList,
+ ContactPanel,
ConversationBox,
},
data() {
return {
pageTitle: this.$state,
+ isContactPanelOpen: false,
};
},
computed: {
@@ -62,6 +75,9 @@ export default {
bus.$emit('scrollToMessage');
});
},
+ onToggleContactPanel() {
+ this.isContactPanelOpen = !this.isContactPanelOpen;
+ },
},
};