mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-07-10 01:18:29 +00:00
fix: unusable toggle in global scope
This commit is contained in:
parent
e03569ef7d
commit
71b5f7cfe9
3 changed files with 4 additions and 4 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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 scopeMismatchMessage
|
||||
|
|
|
|||
|
|
@ -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 || '')">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue