mirror of
https://github.com/fosrl/pangolin.git
synced 2026-06-05 23:28:44 +00:00
Adjust validation to allow creation with (optional) path
This commit is contained in:
@@ -306,11 +306,13 @@ export default function CreateShareLinkForm({
|
||||
|
||||
<FormField
|
||||
control={form.control}
|
||||
name="path"
|
||||
name="title"
|
||||
render={({ field }) => (
|
||||
<FormItem>
|
||||
<FormLabel>
|
||||
{t("sharePathOptional")}
|
||||
{t(
|
||||
"shareTitleOptional"
|
||||
)}
|
||||
</FormLabel>
|
||||
<FormControl>
|
||||
<Input {...field} />
|
||||
@@ -322,13 +324,11 @@ export default function CreateShareLinkForm({
|
||||
|
||||
<FormField
|
||||
control={form.control}
|
||||
name="title"
|
||||
name="path"
|
||||
render={({ field }) => (
|
||||
<FormItem>
|
||||
<FormLabel>
|
||||
{t(
|
||||
"shareTitleOptional"
|
||||
)}
|
||||
{t("sharePathOptional")}
|
||||
</FormLabel>
|
||||
<FormControl>
|
||||
<Input {...field} />
|
||||
|
||||
Reference in New Issue
Block a user