Skip to content

Commit

Permalink
update content
Browse files Browse the repository at this point in the history
  • Loading branch information
sorax committed Dec 24, 2024
1 parent b8881b7 commit 97bf815
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions lib/radiator_web/live/components/outline.ex
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,6 @@ defmodule RadiatorWeb.Components.Outline do
|> reply(:ok)
end

# TODO: beim zusammenziehen von nodes ist es wichtig, dass wir
# (also der verursacher) auch den neuen content erhalten

def update(
%{event: %NodeContentChangedEvent{event_id: <<_::binary-size(36)>> <> ":" <> id}},
%{id: id} = socket
),
do: reply(socket, :ok)

def update(%{event: %NodeContentChangedEvent{node_id: node_id, content: content}}, socket) do
socket
|> push_event("set_content", %{uuid: node_id, content: content})
Expand Down

0 comments on commit 97bf815

Please sign in to comment.