feat: add sudo password and add diagonal bg's

This commit is contained in:
LukeGus
2025-12-20 02:03:27 -06:00
parent b7fdb2143d
commit 5f18a38eec
10 changed files with 84 additions and 11 deletions

View File

@@ -517,6 +517,7 @@ export function HostManagerEditor({
autoMosh: z.boolean(),
moshCommand: z.string(),
sudoPasswordAutoFill: z.boolean(),
sudoPassword: z.string().optional(),
})
.optional(),
forceKeyboardInteractive: z.boolean().optional(),
@@ -2726,6 +2727,27 @@ export function HostManagerEditor({
)}
/>
{form.watch("terminalConfig.sudoPasswordAutoFill") && (
<FormField
control={form.control}
name="terminalConfig.sudoPassword"
render={({ field }) => (
<FormItem>
<FormLabel>{t("hosts.sudoPassword")}</FormLabel>
<FormControl>
<PasswordInput
placeholder={t("placeholders.sudoPassword")}
{...field}
/>
</FormControl>
<FormDescription>
{t("hosts.sudoPasswordDesc")}
</FormDescription>
</FormItem>
)}
/>
)}
<div className="space-y-2">
<label className="text-sm font-medium">
Environment Variables