feat: set proper page title for chats rooms

This commit is contained in:
2024-10-15 00:35:20 +00:00
parent 0ae441c31a
commit 7de16a0ea2
2 changed files with 2 additions and 2 deletions

View File

@@ -58,7 +58,7 @@ defmodule SlaxWeb.ChatRoomLive do
Chat.get_first_room!()
end
{:noreply, assign(socket, hide_topic?: false, room: room)}
{:noreply, assign(socket, hide_topic?: false, page_title: "# #{room.name}", room: room)}
end
@impl Phoenix.LiveView