fix: missing pluginListStore import
keyboardstaff committed
Mar 19, 2026 at 09:45 UTC
789a87c8903b92ccc402ebd3acd9385b7240f62d
2 files changed
+7
-6
plugins/_model_config/webui/main.html
+1
-4
@@ -338,10 +338,7 @@
338
</button>
339
<button class="text-button" @click="(async () => {
340
await import('/components/plugins/plugin-settings-store.js');
341
- const pluginMeta = { name: '_model_config', always_enabled: true, per_project_config: true, per_agent_config: true, has_config_screen: true };
342
- if ($store.pluginToggle?.open) await $store.pluginToggle.open(pluginMeta);
343
- await $store.pluginSettingsPrototype.open('_model_config', { perProjectConfig: true, perAgentConfig: true });
344
- openModal('components/plugins/plugin-settings.html');
341
+ await $store.pluginSettingsPrototype.openConfig('_model_config');
342
})()">
343
<span class="material-symbols-outlined" style="font-size:15px;">settings</span>
344
<span>Settings</span>
plugins/_model_config/webui/models-summary.html
+6
-2
@@ -7,6 +7,7 @@
7
<body>
8
<script type="module">
9
import { store } from "/plugins/_model_config/webui/model-config-store.js";
10
+ import { store as pluginListStore } from "/components/plugins/list/pluginListStore.js";
11
</script>
12
13
<div x-data>
@@ -48,11 +49,14 @@
49
</div>
50
51
<div style="display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px;">
51
- <button class="btn btn-field" @click="$store.pluginListStore.openPluginConfig('_model_config')">
52
+ <button class="btn btn-field" @click="$store.pluginListStore.openPluginConfig({ name: '_model_config', has_config_screen: true })">
53
Configure Models
54
</button>
55
+ <button class="btn btn-field" @click="openModal('/plugins/_model_config/webui/main.html')">
56
+ Configure Presets
57
+ </button>
58
<button class="btn btn-field" @click="openModal('/plugins/_model_config/webui/api-keys.html')">
55
- Manage API Keys
59
+ Configure API Keys
60
</button>
61
</div>
62