diff --git a/src/components/Main/MainView/ChannelView/ChannelHeader/ChannelHeaderTools.vue b/src/components/Main/MainView/ChannelView/ChannelHeader/ChannelHeaderTools.vue index e71348ecc..60ee006cc 100644 --- a/src/components/Main/MainView/ChannelView/ChannelHeader/ChannelHeaderTools.vue +++ b/src/components/Main/MainView/ChannelView/ChannelHeader/ChannelHeaderTools.vue @@ -14,6 +14,7 @@ :channel-id="channelId" :show-notification-setting-btn="!channelState.forced" :is-archived="channelState.archived" + @click-item="closePopupMenu" /> diff --git a/src/components/Main/MainView/ChannelView/ChannelHeader/ChannelHeaderToolsMenu.vue b/src/components/Main/MainView/ChannelView/ChannelHeader/ChannelHeaderToolsMenu.vue index 7104b9953..9594bd6f4 100644 --- a/src/components/Main/MainView/ChannelView/ChannelHeader/ChannelHeaderToolsMenu.vue +++ b/src/components/Main/MainView/ChannelView/ChannelHeader/ChannelHeaderToolsMenu.vue @@ -9,18 +9,21 @@ :disabled="!canToggleQall" :data-is-active="$boolAttr(isQallSessionOpened)" @click="toggleQall" + @click-item="emit('clickItem')" /> @@ -60,6 +66,10 @@ import { useCommandPalette } from '/@/store/app/commandPalette' import useChannelManageModal from './composables/useChannelManageModal' import useCopyChannelLink from './composables/useCopyChannelLink' +const emit = defineEmits<{ + (e: 'clickItem'): void +}>() + const props = withDefaults( defineProps<{ channelId: ChannelId diff --git a/src/components/Main/MainView/PrimaryViewHeader/PrimaryViewHeaderPopupMenuItem.vue b/src/components/Main/MainView/PrimaryViewHeader/PrimaryViewHeaderPopupMenuItem.vue index 4fedc1bcc..fd3633e43 100644 --- a/src/components/Main/MainView/PrimaryViewHeader/PrimaryViewHeaderPopupMenuItem.vue +++ b/src/components/Main/MainView/PrimaryViewHeader/PrimaryViewHeaderPopupMenuItem.vue @@ -28,11 +28,13 @@ const props = withDefaults( const emit = defineEmits<{ (e: 'click'): void + (f: 'clickItem'): void }>() const onClick = () => { if (props.disabled) return emit('click') + emit('clickItem') }