Skip to content

Commit

Permalink
[58467] Changed add hierarchical item behavior
Browse files Browse the repository at this point in the history
When adding a new item in the hierarchy the item form will stay open for
the next entry.
  • Loading branch information
apfohl committed Oct 24, 2024
1 parent cb3a629 commit b581a56
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ def create
->(validation_result) { add_errors_to_form(validation_result) }
)

update_via_turbo_stream(component: ItemsComponent.new(custom_field: @custom_field,
new_item_form_data: { show: true }))

respond_with_turbo_streams
end

Expand Down

0 comments on commit b581a56

Please sign in to comment.