mirror of
https://github.com/khairul169/vaulterm.git
synced 2026-09-15 17:03:30 +07:00
feat: add incus user option
This commit is contained in:
@@ -172,9 +172,18 @@ const IncusFormFields = ({ form }: MiscFormFieldProps) => {
|
||||
/>
|
||||
</FormField>
|
||||
{type === "lxc" && (
|
||||
<FormField label="Shell">
|
||||
<InputField form={form} name="metadata.shell" placeholder="bash" />
|
||||
</FormField>
|
||||
<>
|
||||
<FormField label="User ID">
|
||||
<InputField
|
||||
form={form}
|
||||
keyboardType="number-pad"
|
||||
name="metadata.user"
|
||||
/>
|
||||
</FormField>
|
||||
<FormField label="Shell">
|
||||
<InputField form={form} name="metadata.shell" placeholder="bash" />
|
||||
</FormField>
|
||||
</>
|
||||
)}
|
||||
</>
|
||||
);
|
||||
|
||||
@@ -44,6 +44,7 @@ const incusSchema = hostSchema.merge(
|
||||
metadata: z.object({
|
||||
type: z.enum(["lxc", "qemu"]),
|
||||
instance: z.string().min(1, { message: "Instance name is required" }),
|
||||
user: z.coerce.number().nullish(),
|
||||
shell: z.string().nullish(),
|
||||
}),
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user