mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-02 16:19:08 +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
|
||||
}
|
||||
defaultValue={field.value.toString()}
|
||||
disabled={neverExpire}
|
||||
>
|
||||
<FormControl>
|
||||
<SelectTrigger className="w-full">
|
||||
@@ -423,6 +424,7 @@ export default function CreateShareLinkForm({
|
||||
<FormField
|
||||
control={form.control}
|
||||
name="timeValue"
|
||||
disabled={neverExpire}
|
||||
render={({ field }) => (
|
||||
<FormItem>
|
||||
<FormControl>
|
||||
|
||||
Reference in New Issue
Block a user