fix: unusable toggle in global scope
Alessandro committed
Mar 10, 2026 at 15:40 UTC
71b5f7cfe96ae78f71ab8c2f2edced14f25375a2
3 files changed
+4
-4
webui/components/plugins/toggle/plugin-toggle-advanced.html
+1
-1
@@ -60,7 +60,7 @@
60
</label>
61
62
<div class="plugin-settings-toolbar-item plugin-status-toggle-item">
63
- <label class="toggle" :class="{ 'disabled-appearance': !$store.pluginToggle.hasExplicitRuleForScope && !$store.pluginToggle.alwaysEnabled }">
63
+ <label class="toggle" :class="{ 'disabled-appearance': $store.pluginToggle.alwaysEnabled || $store.pluginToggle.isSaving }">
64
<input type="checkbox"
65
:checked="$store.pluginToggle.status === 'enabled'"
66
:disabled="$store.pluginToggle.alwaysEnabled || $store.pluginToggle.isSaving"
webui/components/plugins/toggle/plugin-toggle-store.js
+2
-2
@@ -282,8 +282,8 @@ const model = {
282
283
if (!this.loadedPath) {
284
return this.configs.length === 0
285
- ? "No activation rules configured. Plugin defaults to ON."
286
- : "No rule for this scope. Defaults to ON.";
285
+ ? "No activation rule exists yet. This plugin is currently ON by default."
286
+ : "No activation rule exists for this scope yet. This scope is currently ON by default.";
287
}
288
289
// Inherited from a parent scope - mirrors plugin-settings-store scopeMismatchMessage
webui/components/plugins/toggle/plugin-toggles.html
+1
-1
@@ -22,7 +22,7 @@
22
23
<div x-show="!$store.pluginToggle.isLoading" class="plugin-configs-list">
24
<template x-if="($store.pluginToggle.configs || []).length === 0">
25
- <div class="plugin-configs-empty">No status configurations found.</div>
25
+ <div class="plugin-configs-empty">No activation rules found. This plugin is currently using its default ON state.</div>
26
</template>
27
28
<template x-for="cfg in ($store.pluginToggle.configs || [])" :key="(cfg.project_name || '') + '|' + (cfg.agent_profile || '')">