Skip to content

Menu button with disabled UA is rendered the same as if enabled #1966

@mvorisek

Description

@mvorisek

How to repro? Disable for ex. standard model add action in https://github.com/atk4/data/blob/4.0.0/src/Model/UserActionsTrait.php#L122 with 'enabled' => false.

Currently Menu (reproducible in CRUD and CardDeck completely ignores if UA is disabled and renders the executor buttons the same as if enabled:

image

the UA cannot be correctly executed

image

but the user should not be able to fill any UA if disabled in the first place

(https://github.com/atk4/ui/pull/1965/files#diff-9399fd49c8e77b9e3996c5929ebdeeca0e9baeb0a9349797fb8b20d47ad54810L340 there was a primitive support in CardDeck in the past)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions