mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-06 10:46:38 +00:00
gray out time selector in share links if never expire is checked
This commit is contained in:
@@ -388,6 +388,7 @@ export default function CreateShareLinkForm({
|
|||||||
field.onChange
|
field.onChange
|
||||||
}
|
}
|
||||||
defaultValue={field.value.toString()}
|
defaultValue={field.value.toString()}
|
||||||
|
disabled={neverExpire}
|
||||||
>
|
>
|
||||||
<FormControl>
|
<FormControl>
|
||||||
<SelectTrigger className="w-full">
|
<SelectTrigger className="w-full">
|
||||||
@@ -423,6 +424,7 @@ export default function CreateShareLinkForm({
|
|||||||
<FormField
|
<FormField
|
||||||
control={form.control}
|
control={form.control}
|
||||||
name="timeValue"
|
name="timeValue"
|
||||||
|
disabled={neverExpire}
|
||||||
render={({ field }) => (
|
render={({ field }) => (
|
||||||
<FormItem>
|
<FormItem>
|
||||||
<FormControl>
|
<FormControl>
|
||||||
|
|||||||
Reference in New Issue
Block a user