mirror of
https://github.com/ikawrakow/ik_llama.cpp.git
synced 2026-02-24 07:04:11 +00:00
webui: move preset settings to top
webui:bug fix
This commit is contained in:
@@ -228,6 +228,26 @@ const SETTING_SECTIONS = (
|
||||
localConfig: typeof CONFIG_DEFAULT,
|
||||
setLocalConfig: (config: typeof CONFIG_DEFAULT) => void
|
||||
): SettingSection[] => [
|
||||
{
|
||||
title: (
|
||||
<>
|
||||
<BookmarkIcon className={ICON_CLASSNAME} />
|
||||
Presets
|
||||
</>
|
||||
),
|
||||
fields: [
|
||||
{
|
||||
type: SettingInputType.CUSTOM,
|
||||
key: 'custom', // dummy key for presets
|
||||
component: () => (
|
||||
<PresetsManager
|
||||
currentConfig={localConfig}
|
||||
onLoadPreset={setLocalConfig}
|
||||
/>
|
||||
),
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: (
|
||||
<>
|
||||
@@ -489,26 +509,7 @@ const SETTING_SECTIONS = (
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: (
|
||||
<>
|
||||
<BookmarkIcon className={ICON_CLASSNAME} />
|
||||
Presets
|
||||
</>
|
||||
),
|
||||
fields: [
|
||||
{
|
||||
type: SettingInputType.CUSTOM,
|
||||
key: 'custom', // dummy key for presets
|
||||
component: () => (
|
||||
<PresetsManager
|
||||
currentConfig={localConfig}
|
||||
onLoadPreset={setLocalConfig}
|
||||
/>
|
||||
),
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
];
|
||||
|
||||
export default function SettingDialog({
|
||||
|
||||
Reference in New Issue
Block a user