mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-07-25 21:29:01 +03:00
Small Tweaks (#17652)
* Ensure that hailo uses correct labelmap * Make whole button clickable * Add weblate to readme * Update docs for HEIC * Fix explore chip icon logic * Sort regardless of case * Don't allow selection * Fix image uploading
This commit is contained in:
@@ -32,7 +32,11 @@ export default function ImageEntry({
|
||||
const [preview, setPreview] = useState<string | null>(null);
|
||||
|
||||
const formSchema = z.object({
|
||||
file: z.instanceof(File, { message: "Please select an image file." }),
|
||||
file: z
|
||||
.instanceof(File, { message: t("imageEntry.validation.selectImage") })
|
||||
.refine((file) =>
|
||||
accept["image/*"].includes(`.${file.type.split("/")[1]}`),
|
||||
),
|
||||
});
|
||||
|
||||
const form = useForm<z.infer<typeof formSchema>>({
|
||||
|
||||
Reference in New Issue
Block a user