diff --git a/frontend/src/components/tag_input.tsx b/frontend/src/components/tag_input.tsx index 3ffc953..7a488b2 100644 --- a/frontend/src/components/tag_input.tsx +++ b/frontend/src/components/tag_input.tsx @@ -156,12 +156,14 @@ export function QuickAddTagDialog({ onAdded }: { onAdded: (tags: Tag[]) => void const [error, setError] = useState(null) + const [separator, setSeparator] = useState(",") + const handleSubmit = async () => { if (text.trim().length === 0) { return } setError(null) - const names = text.split(",").filter((n) => n.length > 0) + const names = text.split(separator).filter((n) => n.length > 0) const res = await network.getOrCreateTags(names, type) if (!res.success) { setError(res.message) @@ -184,12 +186,27 @@ export function QuickAddTagDialog({ onAdded }: { onAdded: (tags: Tag[]) => void

{t('Add Tags')}

- {t("Input tags separated by commas.")} + {t("Input tags separated by separator.")}
{t("If the tag does not exist, it will be created automatically.")}
{t("Optionally, you can specify a type for the new tags.")}

+

+ {t("Separator")}: + + + +