Make checklist entries sortable by d&d
Some checks failed
/ Run tests (push) Failing after 15s
/ Run system tests (push) Failing after 14s
/ Build, push and deploy image (push) Has been skipped

This commit is contained in:
david 2024-10-27 22:37:11 +01:00
parent 1e1d80a2c3
commit 7acc0559ae
10 changed files with 98 additions and 20 deletions

View file

@ -33,8 +33,13 @@ class ChecklistEntriesController < ApplicationController
# PATCH/PUT /checklist_entries/1
def update
if @checklist_entry.update(checklist_entry_params)
redirect_to @checklist_entry.checklist, notice: "Checklist entry was successfully updated.",
status: :see_other
respond_to do |format|
format.turbo_stream
format.html do
redirect_to @checklist_entry.checklist, notice: "Checklist entry was successfully updated.",
status: :see_other
end
end
else
render :edit, status: :unprocessable_entity
end