mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-06 23:32:12 +03:00
Adds an opt-in `keepOpenOnSelect` prop to `ModelSelectModal`. When the combos page sets it, picking a model no longer auto-closes the modal and a full-width "Done" button is rendered in the footer (via Modal's `footer` slot) so users can add several models in a row and confirm explicitly. All other single-select callers keep the existing auto-close-on-select behaviour (the prop is off by default). When `multiSelect` is on, the existing Clear+Done footer wins to avoid two competing footers. The upstream JS variant gates the Done button on `!closeOnSelect`. TDD coverage: tests/unit/ui/model-select-modal-keep-open.test.tsx asserts the Done button is absent by default, present when `keepOpenOnSelect=true`, fires only `onClose` (not a stray `onSelect`), and that `multiSelect` still renders exactly one Done button. Inspired-by: decolua/9router#1031 Co-authored-by: Zanuar Tri Romadon <triromadon@gmail.com>