Skip to content

Bug: #724

@hossamhamzahm

Description

@hossamhamzahm

Describe the bug
When I create a new action, confirmation, submit_btn_class, submit_btn_text, form attributes are optional, and the action should work without them. However, if they are not provided, the action button does nothing when it is clicked, it doesn't call the action api.

To Reproduce
Create an action without confirmation, submit_btn_class, submit_btn_text, and form attributes

@action(
        name="enable_action",
        text="Enable Action",
    )
async def enable_action(self, request: Request, pks: list[Any]) -> str:
    return "Succeeded"

Environment (please complete the following information):

  • Starlette-Admin version: 0.15.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions