fix only show advanced toggle on newt sites

This commit is contained in:
miloschwartz
2026-01-19 11:50:56 -08:00
parent fd6a3e5a17
commit 5edfed78f2

View File

@@ -728,26 +728,28 @@ WantedBy=default.target`
</FormItem> </FormItem>
)} )}
/> />
<div className="flex items-center justify-end md:col-start-2"> {form.watch("method") === "newt" && (
<Button <div className="flex items-center justify-end md:col-start-2">
type="button" <Button
variant="ghost" type="button"
size="sm" variant="ghost"
onClick={() => size="sm"
setShowAdvancedSettings( onClick={() =>
!showAdvancedSettings setShowAdvancedSettings(
) !showAdvancedSettings
} )
className="flex items-center gap-2" }
> className="flex items-center gap-2"
{showAdvancedSettings ? ( >
<ChevronUp className="h-4 w-4" /> {showAdvancedSettings ? (
) : ( <ChevronUp className="h-4 w-4" />
<ChevronDown className="h-4 w-4" /> ) : (
)} <ChevronDown className="h-4 w-4" />
{t("advancedSettings")} )}
</Button> {t("advancedSettings")}
</div> </Button>
</div>
)}
{form.watch("method") === "newt" && {form.watch("method") === "newt" &&
showAdvancedSettings && ( showAdvancedSettings && (
<FormField <FormField