Skip to content

Keep view value from resource on actions #2190

Open
@Paul-Bob

Description

@Paul-Bob

Right now each action have the view value hard-coded to new. I guess this was implemented as a quick fix to render hidden fields.

This approach can be improved, we should keep the view value from the resource instead of hard-coding it.

The badge field do not render now on the actions because it will not render on new views.

I suggest to create an system where field.visible_in_view?(view: view) knows that is on action context and will return true on hidden fields and other that we want always to be possible to render on actions no matter which value view have.

Metadata

Metadata

Assignees

Labels

BugSomething isn't working

Type

No type

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions