reedo types
This commit is contained in:
@@ -5,13 +5,23 @@ import InputError from '@/components/InputError.vue';
|
||||
import { Label } from '@/components/ui/label';
|
||||
import { Input } from '@/components/ui/input';
|
||||
import { nameToSlug } from '@/routes/teams';
|
||||
import type {
|
||||
TeamSlugProps,
|
||||
TeamSlugRequest,
|
||||
TeamSlugResponse,
|
||||
} from '@/types/team';
|
||||
|
||||
const props = defineProps<TeamSlugProps>();
|
||||
type TeamSlugRequest = {
|
||||
name: string;
|
||||
ignored_slug: string | null;
|
||||
};
|
||||
|
||||
type TeamSlugResponse = {
|
||||
name: string;
|
||||
slug: string;
|
||||
taken: boolean;
|
||||
};
|
||||
|
||||
const props = defineProps<{
|
||||
name: string;
|
||||
ignoredSlug?: string;
|
||||
error?: string;
|
||||
}>();
|
||||
const slug = defineModel<string>('slug', { required: true });
|
||||
const slugTaken = defineModel<boolean>('slugTaken', { required: true });
|
||||
const previewError = ref('');
|
||||
|
||||
Reference in New Issue
Block a user