mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 04:15:25 +00:00
Merge pull request #18577 from Classic298/fix-global-activated-actions
fix: global activated actions
This commit is contained in:
commit
06e280d831
1 changed files with 12 additions and 5 deletions
|
|
@ -34,11 +34,18 @@
|
|||
<div class=" flex items-center gap-2 mr-3">
|
||||
<div class="self-center flex items-center">
|
||||
<Checkbox
|
||||
state={_actions[action].selected ? 'checked' : 'unchecked'}
|
||||
on:change={(e) => {
|
||||
_actions[action].selected = e.detail === 'checked';
|
||||
selectedActionIds = Object.keys(_actions).filter((t) => _actions[t].selected);
|
||||
}}
|
||||
state={_actions[action].is_global
|
||||
? 'checked'
|
||||
: _actions[action].selected
|
||||
? 'checked'
|
||||
: 'unchecked'}
|
||||
disabled={_actions[action].is_global}
|
||||
on:change={(e) => {
|
||||
if (!_actions[action].is_global) {
|
||||
_actions[action].selected = e.detail === 'checked';
|
||||
selectedActionIds = Object.keys(_actions).filter((t) => _actions[t].selected);
|
||||
}
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue