Add autocomplete suggestions to TagsField, use it for Daemon's module blocklist
TagsField now takes an optional suggestions list, rendered as a native <datalist> on the tag input. Wired the Daemon page's "Disabled modules" field to breadd's real built-in module names (bread.monitors/devices/ workspaces/binds, from bread/breadd/src/lua/mod.rs's BUILTIN_* registry) so blocking one is a pick, not free-typed guesswork.
This commit is contained in:
parent
93c3b88b10
commit
f1c8b3d0e3
2 changed files with 20 additions and 3 deletions
|
|
@ -58,7 +58,11 @@
|
|||
|
||||
<Group title="Modules">
|
||||
<SwitchField label="Load built-in modules" bind:value={cfg.modules_builtin} />
|
||||
<TagsField label="Disabled modules" bind:value={cfg.modules_disable} />
|
||||
<TagsField
|
||||
label="Disabled modules"
|
||||
bind:value={cfg.modules_disable}
|
||||
suggestions={["bread.monitors", "bread.devices", "bread.workspaces", "bread.binds"]}
|
||||
/>
|
||||
</Group>
|
||||
|
||||
<Group title="Adapters" hint="Sources breadd normalises into events. Disable any you don't use.">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue