Skip to content

fix(admin): trigger dirty state check on webui models chip removal and addition - #228

Open
elf-mouse wants to merge 1 commit into
yc-software:mainfrom
elf-mouse:fix/admin-webui-models-dirty-check
Open

fix(admin): trigger dirty state check on webui models chip removal and addition#228
elf-mouse wants to merge 1 commit into
yc-software:mainfrom
elf-mouse:fix/admin-webui-models-dirty-check

Conversation

@elf-mouse

@elf-mouse elf-mouse commented Aug 5, 2026

Copy link
Copy Markdown

This commit fixes a UI form state bug where clearing all allowed model chips in Admin Governance left the Save button disabled:

  • plugins/admin/public/index.html:
    • Call updateSectionDirty("webui-models") inside chip removal (x.onclick), chip addition (addModel), and default model selection change handlers.
    • Enables administrators to save an empty allowlist to remove model restrictions and restore default catalog visibility.

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

…d addition

This commit fixes a UI form state bug where clearing all allowed model chips in Admin Governance left the Save button disabled:

1. `plugins/admin/public/index.html`:
   - Call `updateSectionDirty("webui-models")` inside chip removal (`x.onclick`), chip addition (`addModel`), and default model selection change handlers.
   - Enables administrators to save an empty allowlist to remove model restrictions and restore default catalog visibility.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant