Agent Zero AI framework
fix: unusable toggle in global scope
Alessandro71b5f7cfe96a
diff --git a/webui/components/plugins/toggle/plugin-toggle-advanced.html b/webui/components/plugins/toggle/plugin-toggle-advanced.htmlindex 3d6ac275c..64ae95b05 100644--- a/webui/components/plugins/toggle/plugin-toggle-advanced.html+++ b/webui/components/plugins/toggle/plugin-toggle-advanced.html@@ -60,7 +60,7 @@</label><div class="plugin-settings-toolbar-item plugin-status-toggle-item">- <label class="toggle" :class="{ 'disabled-appearance': !$store.pluginToggle.hasExplicitRuleForScope && !$store.pluginToggle.alwaysEnabled }">+ <label class="toggle" :class="{ 'disabled-appearance': $store.pluginToggle.alwaysEnabled || $store.pluginToggle.isSaving }"><input type="checkbox":checked="$store.pluginToggle.status === 'enabled'":disabled="$store.pluginToggle.alwaysEnabled || $store.pluginToggle.isSaving"diff --git a/webui/components/plugins/toggle/plugin-toggle-store.js b/webui/components/plugins/toggle/plugin-toggle-store.jsindex bf6dfdfc9..55bee91d6 100644--- a/webui/components/plugins/toggle/plugin-toggle-store.js+++ b/webui/components/plugins/toggle/plugin-toggle-store.js@@ -282,8 +282,8 @@ const model = {if (!this.loadedPath) {return this.configs.length === 0- ? "No activation rules configured. Plugin defaults to ON."- : "No rule for this scope. Defaults to ON.";+ ? "No activation rule exists yet. This plugin is currently ON by default."+ : "No activation rule exists for this scope yet. This scope is currently ON by default.";}// Inherited from a parent scope - mirrors plugin-settings-store scopeMismatchMessagediff --git a/webui/components/plugins/toggle/plugin-toggles.html b/webui/components/plugins/toggle/plugin-toggles.htmlindex e6c14a5e9..5f45caca4 100644--- a/webui/components/plugins/toggle/plugin-toggles.html+++ b/webui/components/plugins/toggle/plugin-toggles.html@@ -22,7 +22,7 @@<div x-show="!$store.pluginToggle.isLoading" class="plugin-configs-list"><template x-if="($store.pluginToggle.configs || []).length === 0">- <div class="plugin-configs-empty">No status configurations found.</div>+ <div class="plugin-configs-empty">No activation rules found. This plugin is currently using its default ON state.</div></template><template x-for="cfg in ($store.pluginToggle.configs || [])" :key="(cfg.project_name || '') + '|' + (cfg.agent_profile || '')">