Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

emitの追加によるclosePopupMenuの発火 #4341

Merged
merged 1 commit into from
Jul 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
:channel-id="channelId"
:show-notification-setting-btn="!channelState.forced"
:is-archived="channelState.archived"
@click-item="closePopupMenu"
/>
</click-outside>
</channel-header-tools-list>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,38 +9,44 @@
:disabled="!canToggleQall"
:data-is-active="$boolAttr(isQallSessionOpened)"
@click="toggleQall"
@click-item="emit('clickItem')"
/>
<header-tools-menu-item
v-if="isChildChannelCreatable"
icon-name="hash"
label="子チャンネルを作成"
@click="openChannelCreateModal"
@click-item="emit('clickItem')"
/>
<header-tools-menu-item
v-if="showNotificationSettingBtn"
icon-name="notified-or-subscribed"
label="通知設定"
@click="openNotificationModal"
@click-item="emit('clickItem')"
/>
<header-tools-menu-item
v-if="isSearchEnabled"
icon-name="search"
icon-mdi
label="チャンネル内検索"
@click="openCommandPalette('search', 'in:here ')"
@click-item="emit('clickItem')"
/>
<header-tools-menu-item
icon-name="link"
icon-mdi
label="チャンネルリンクをコピー"
@click="copyLink"
@click-item="emit('clickItem')"
/>
<header-tools-menu-item
v-if="hasChannelEditPermission"
icon-name="hash"
:class="$style.manageChannel"
label="チャンネル管理"
@click="openChannelManageModal"
@click-item="emit('clickItem')"
/>
</primary-view-header-popup-frame>
</template>
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}
</script>

Expand Down
Loading