add sampler to settings page

This commit is contained in:
pinks 2023-10-10 18:21:46 +02:00
parent 0e88bc5053
commit 477cb03ea2
1 changed files with 18 additions and 0 deletions

View File

@ -54,6 +54,23 @@ export function SettingsPage(props: { sessionId: string }) {
}))}
/>
</label>
<label className="flex flex-col items-stretch gap-1">
<span className="text-sm">
Sampler {changedParams?.sampler_name != null ? "(Changed)" : ""}
</span>
<input
className="input-text"
disabled={params.isLoading || !user.data?.isAdmin}
value={changedParams?.sampler_name ??
params.data?.sampler_name ??
""}
onChange={(e) =>
setChangedParams((params) => ({
...params,
sampler_name: e.target.value,
}))}
/>
</label>
<label className="flex flex-col items-stretch gap-1">
<span className="text-sm">
Steps {changedParams?.steps != null ? "(Changed)" : ""}
@ -92,6 +109,7 @@ export function SettingsPage(props: { sessionId: string }) {
}))}
/>
</span>
span
</label>
<label className="flex flex-col items-stretch gap-1">
<span className="text-sm">