Skip to content

Commit

Permalink
game name is not required
Browse files Browse the repository at this point in the history
  • Loading branch information
snazzyfox committed Nov 16, 2023
1 parent 629ce9f commit 0171792
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/TwitchGameSelection.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<template>
<q-select label="Twitch Game" use-input option-value="id" :input-debounce="200" :disable="!store.isSignedIn"
:options="filteredGamesData" :model-value="modelValue" @update:model-value="handleSelectGame" @filter="handleFilter"
@new-value="handleNewGame" :rules="[(val) => !!val || 'You must select a game.']">
@new-value="handleNewGame" :clearable="props.clearable"
:rules="[(val) => !required || !val || 'You must select a game.']">
<template #selected>
<user-label v-if="game" :name="game.name" :image-src="game.box_art_url" dense />
</template>
Expand All @@ -24,6 +25,8 @@ import { ionCloseOutline } from '@quasar/extras/ionicons-v6';
const props = defineProps<{
modelValue?: string;
clearable?: boolean;
required?: boolean;
}>();
const emit = defineEmits(['update:modelValue', 'update:gameName']);
Expand Down

0 comments on commit 0171792

Please sign in to comment.