Skip to content

Commit

Permalink
イベントの引数にEventLevelを使うように
Browse files Browse the repository at this point in the history
  • Loading branch information
helgev-traP committed Nov 2, 2023
1 parent a60f381 commit 9a7ccbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Events/EventLevelMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interface Props {
defineProps<Props>()
const emit = defineEmits<{
(e: 'update-public-status', value: string): void
(e: 'update-public-status', value: EventLevel): void
}>()
</script>

Expand All @@ -19,7 +19,7 @@ const emit = defineEmits<{
<button
:class="[$style.eventLevelMenuButton]"
:disabled="eventLevel === level"
@click="emit('update-public-status', 'open')"
@click="emit('update-public-status', level)"
>
<p :class="$style.statusName">{{ detail.label }}</p>
<!--タイポグラフィのため改行を有効に-->
Expand Down

0 comments on commit 9a7ccbd

Please sign in to comment.