Skip to content

Agent Zero AI framework

fix: missing pluginListStore import

keyboardstaff789a87c8903b
diff --git a/plugins/_model_config/webui/main.html b/plugins/_model_config/webui/main.html
index dee6c8603..723649cb6 100644
--- a/plugins/_model_config/webui/main.html
+++ b/plugins/_model_config/webui/main.html
@@ -338,10 +338,7 @@
</button>
<button class="text-button" @click="(async () => {
await import('/components/plugins/plugin-settings-store.js');
- const pluginMeta = { name: '_model_config', always_enabled: true, per_project_config: true, per_agent_config: true, has_config_screen: true };
- if ($store.pluginToggle?.open) await $store.pluginToggle.open(pluginMeta);
- await $store.pluginSettingsPrototype.open('_model_config', { perProjectConfig: true, perAgentConfig: true });
- openModal('components/plugins/plugin-settings.html');
+ await $store.pluginSettingsPrototype.openConfig('_model_config');
})()">
<span class="material-symbols-outlined" style="font-size:15px;">settings</span>
<span>Settings</span>
diff --git a/plugins/_model_config/webui/models-summary.html b/plugins/_model_config/webui/models-summary.html
index 4284d73c7..f5941260c 100644
--- a/plugins/_model_config/webui/models-summary.html
+++ b/plugins/_model_config/webui/models-summary.html
@@ -7,6 +7,7 @@
<body>
<script type="module">
import { store } from "/plugins/_model_config/webui/model-config-store.js";
+ import { store as pluginListStore } from "/components/plugins/list/pluginListStore.js";
</script>
<div x-data>
@@ -48,11 +49,14 @@
</div>
<div style="display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px;">
- <button class="btn btn-field" @click="$store.pluginListStore.openPluginConfig('_model_config')">
+ <button class="btn btn-field" @click="$store.pluginListStore.openPluginConfig({ name: '_model_config', has_config_screen: true })">
Configure Models
</button>
+ <button class="btn btn-field" @click="openModal('/plugins/_model_config/webui/main.html')">
+ Configure Presets
+ </button>
<button class="btn btn-field" @click="openModal('/plugins/_model_config/webui/api-keys.html')">
- Manage API Keys
+ Configure API Keys
</button>
</div>