Skip to content
Snippets Groups Projects
Commit 5d71078d authored by Konrad Mohrfeldt's avatar Konrad Mohrfeldt :koala:
Browse files

refactor: let uses of episode finder define custom events and attributes

parent 65dd776d
No related branches found
No related tags found
No related merge requests found
<template>
<FormGroup v-slot="attrs" :label="t('episode.assignment.searchExisting')">
<AEpisodeSelector v-model="episodeId" :query="query" :disabled="attrs.disabled" />
<FormGroup v-slot="{ disabled }" :label="t('episode.assignment.searchExisting')" custom-control>
<AEpisodeSelector v-model="episodeId" :query="query" :disabled="disabled" v-bind="attrs" />
</FormGroup>
</template>
<script setup lang="ts">
import FormGroup from '@/components/generic/FormGroup.vue'
import { computed } from 'vue'
import { computed, useAttrs } from 'vue'
import { Episode, Show } from '@/types'
import AEpisodeSelector from '@/components/episode/AEpisodeSelector.vue'
import { useI18n } from '@/i18n'
defineOptions({
inheritAttrs: false,
})
const episodeId = defineModel<Episode['id'] | null>({ required: true })
const props = defineProps<{
showId: Show['id']
}>()
const { t } = useI18n()
const attrs = useAttrs()
const query = computed(() => ({
showIds: props.showId,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment