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,6 +728,7 @@ WantedBy=default.target`
</FormItem> </FormItem>
)} )}
/> />
{form.watch("method") === "newt" && (
<div className="flex items-center justify-end md:col-start-2"> <div className="flex items-center justify-end md:col-start-2">
<Button <Button
type="button" type="button"
@@ -748,6 +749,7 @@ WantedBy=default.target`
{t("advancedSettings")} {t("advancedSettings")}
</Button> </Button>
</div> </div>
)}
{form.watch("method") === "newt" && {form.watch("method") === "newt" &&
showAdvancedSettings && ( showAdvancedSettings && (
<FormField <FormField