Skip to content

Commit

Permalink
Fix deleting of board columns with Turbo Streams
Browse files Browse the repository at this point in the history
  • Loading branch information
maikhel committed Jul 17, 2024
1 parent 637f23d commit 93620ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/controllers/board_columns_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def destroy

respond_to do |format|
format.html { redirect_to board_url(board), notice: "BoardColumn was successfully destroyed." }
format.turbo_stream { render turbo_stream: turbo_stream.remove(@board_column) }
end
end

Expand Down
2 changes: 1 addition & 1 deletion app/views/board_columns/_board_column.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="board-column" data-sortable-column-id-value="<%= board_column.id %>">
<div id= <%= dom_id(board_column)%> class="board-column" data-sortable-column-id-value="<%= board_column.id %>">
<%= render partial: 'board_columns/column_header', locals: { board_column: board_column } %>

<div id= <%= dom_id(board_column, :column_body) %>, class="board-column-body", data-sortable-target="cardsContainer">
Expand Down

0 comments on commit 93620ec

Please sign in to comment.