Skip to content

Reload partial if state was changed by Folio::Console::StateCell XHR call #395

@foton

Description

@foton

When I have console index of records with aams_state, there can be "state" switch.
But allowed actions with can depend on it's state.

Currently, I can send option reload_form: true to StateCell which leads to complete reload of page.
see https://github.com/sinfin/folio/blob/master/app/cells/folio/console/state/state.js#L30
Better solution IMHO would be wrap record into div wit class "f-c-aasm-change-reload" and attribute "reload_url".
Then after change, JS would find closest(".f-c-aasm-change-reload") call its reload_url and replace content of that div with response.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions