Skip to content

Commit

Permalink
fix: add missing event
Browse files Browse the repository at this point in the history
  • Loading branch information
sorax committed Aug 13, 2024
1 parent 8b7a5ad commit 222732f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/hooks/events/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function handleList({ nodes }: { nodes: Node[] }) {

// focus last item
const lastItem = container.lastElementChild as HTMLDivElement;
focusItem(lastItem);
focusItem(lastItem, true);
}

export function handleInsert({
Expand Down
10 changes: 10 additions & 0 deletions lib/radiator_web/live/episode_live/index.ex
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,16 @@ defmodule RadiatorWeb.EpisodeLive.Index do
|> reply(:noreply)
end

def handle_event("set_collapsed", _node_id, socket) do
socket
|> reply(:noreply)
end

def handle_event("set_expanded", _node_id, socket) do
socket
|> reply(:noreply)
end

def handle_event("create_node", params, socket) do
user = socket.assigns.current_user
episode = socket.assigns.selected_episode
Expand Down

0 comments on commit 222732f

Please sign in to comment.