mirror of
https://github.com/fosrl/pangolin.git
synced 2026-01-28 22:00:51 +00:00
fix only show advanced toggle on newt sites
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user