Problem/Motivation

Inline actions enable/disable would be a little quicker then clicking "Edit" -> "Disable" -> "Save".

Proposed resolution

Approaches:

  1. Best approach would be ajax, but there are many problems:
    • Operation links don't support ajax for a form
    • Entity forms are not designed for ajax or saving entities with ajax (not a typical feature), making things hard, time consuming and error prone
  2. Traditional approach would be creating a link, route and controller (toggle status and redirect back)
  3. Third approach is somewhat in a middle: add a hidden checkbox and with jquery checking the box and submitting the form. Benefits: it can somewhat still be upgraded to ajax in the future, and would follow similar workflow as changing segment weight.

Remaining tasks

User interface changes

API changes

Data model changes

Comments

mindaugasd created an issue. See original summary.

mindaugasd’s picture

Issue summary: View changes
mindaugasd’s picture

Issue summary: View changes

Added proposed solutions to the description.
And already tried first one (ajax), but did not work.

mindaugasd’s picture

Priority: Minor » Normal

Increasing priority to normal, because feature is also useful for #3461075: Inheriting segments of parent prompt in user interface allowing to disable inherited segments without overriding their settings.

  • mindaugasd committed 6a74fad8 on 1.0.x
    Issue #3436593 by mindaugasd: Add segment row enable/disable actions for...
mindaugasd’s picture

Status: Active » Fixed

Implemented approach no. 3.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.