Skip to content

Support manual close in modal #3537

Closed

Description

@Simrayz

The Portadmin tool uses a modal to provide feedback on the status of port configuration changes. As such, the modal has to stay open and not close accidentally (e.g. clicking on the background, or the close button).

Add an option in the modal utilities to enable "manual closing" (must be closed by code, either htmx or javascript), rather than user actions.

Activity

  1. self-assigned this
    on Sep 12, 2025
  2. added theissue type on Sep 12, 2025
  3. Simrayz commented on Sep 12, 2025

    @Simrayz
    ContributorAuthor

    Add two new options:

        show_close_button: bool = True,
        close_on_outside_click: bool = True,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions