import { mapGetters } from 'vuex';
-import { useKeyboardEvents } from 'dashboard/composables/useKeyboardEvents';
import BackButton from '../BackButton.vue';
import inboxMixin from 'shared/mixins/inboxMixin';
import InboxName from '../InboxName.vue';
@@ -29,11 +28,7 @@ export default {
props: {
chat: {
type: Object,
- default: () => {},
- },
- isContactPanelOpen: {
- type: Boolean,
- default: false,
+ default: () => ({}),
},
showBackButton: {
type: Boolean,
@@ -44,15 +39,6 @@ export default {
default: false,
},
},
- emits: ['contactPanelToggle'],
- setup(props, { emit }) {
- const keyboardEvents = {
- 'Alt+KeyO': {
- action: () => emit('contactPanelToggle'),
- },
- };
- useKeyboardEvents(keyboardEvents);
- },
computed: {
...mapGetters({
currentChat: 'getSelectedChat',
@@ -99,13 +85,6 @@ export default {
}
return this.$t('CONVERSATION.HEADER.SNOOZED_UNTIL_NEXT_REPLY');
},
- contactPanelToggleText() {
- return `${
- this.isContactPanelOpen
- ? this.$t('CONVERSATION.HEADER.CLOSE')
- : this.$t('CONVERSATION.HEADER.OPEN')
- } ${this.$t('CONVERSATION.HEADER.DETAILS')}`;
- },
inbox() {
const { inbox_id: inboxId } = this.chat;
return this.$store.getters['inboxes/getInbox'](inboxId);
@@ -133,7 +112,7 @@ export default {
-
+
{{ currentContact.name }}
@@ -180,19 +160,11 @@ export default {
{{ snoozedDisplayText }}
-