From 939cf61b7c12ae68426904d579ed038b95025049 Mon Sep 17 00:00:00 2001 From: Pranav Date: Fri, 9 May 2025 14:02:24 -0700 Subject: [PATCH] Add support for the uiState --- .../widgets/conversation/ConversationHeader.vue | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/app/javascript/dashboard/components/widgets/conversation/ConversationHeader.vue b/app/javascript/dashboard/components/widgets/conversation/ConversationHeader.vue index e3d0e9d39..a00e3233c 100644 --- a/app/javascript/dashboard/components/widgets/conversation/ConversationHeader.vue +++ b/app/javascript/dashboard/components/widgets/conversation/ConversationHeader.vue @@ -26,11 +26,7 @@ export default { props: { chat: { type: Object, - default: () => {}, - }, - isContactPanelOpen: { - type: Boolean, - default: false, + default: () => { }, }, showBackButton: { type: Boolean, @@ -41,15 +37,7 @@ export default { default: false, }, }, - emits: ['contactPanelToggle'], - setup(props, { emit }) { - const keyboardEvents = { - 'Alt+KeyO': { - action: () => emit('contactPanelToggle'), - }, - }; - useKeyboardEvents(keyboardEvents); - }, + computed: { ...mapGetters({ currentChat: 'getSelectedChat', @@ -174,7 +162,6 @@ export default {