-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
comment out dbg code so I can write a test ... #220
- Loading branch information
Showing
3 changed files
with
21 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
defmodule AuthWeb.GroupsLive do | ||
use AuthWeb, :live_view | ||
alias Phoenix.Socket.Broadcast | ||
@topic "live" | ||
# alias Phoenix.Socket.Broadcast | ||
# @topic "live" | ||
|
||
def mount(_params, _session, socket) do | ||
{:ok, socket} | ||
end | ||
|
||
|
||
@impl true | ||
def handle_event("create", %{"name" => name, "desc" => desc}, socket) do | ||
# person_id = get_person_id(socket.assigns) | ||
# @impl true | ||
# def handle_event("create", %{"name" => name, "desc" => desc}, socket) do | ||
# # person_id = get_person_id(socket.assigns) | ||
|
||
# Item.create_item_with_tags(%{ | ||
# text: text, | ||
# # person_id: person_id, | ||
# status: 2, | ||
# tags: tags | ||
# }) | ||
dbg(name) | ||
dbg(desc) | ||
# # Item.create_item_with_tags(%{ | ||
# # text: text, | ||
# # # person_id: person_id, | ||
# # status: 2, | ||
# # tags: tags | ||
# # }) | ||
# dbg(name) | ||
# dbg(desc) | ||
|
||
AuthWeb.Endpoint.broadcast(@topic, "update", :create) | ||
{:noreply, socket} | ||
end | ||
# AuthWeb.Endpoint.broadcast(@topic, "update", :create) | ||
# {:noreply, socket} | ||
# end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters