Add segment row enable/disable actions for segments table

Created on 27 March 2024, 9 months ago
Updated 24 August 2024, 4 months ago

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

Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

🇱🇹Lithuania mindaugasd

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024