Skip to content

Commit

Permalink
backup
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanIvanoff committed Oct 31, 2023
1 parent 45539f3 commit 6187a8b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"scripts": {
"deploy": "webpack --mode production",
"watch": "webpack --mode development --watch",
"build:dev": "webpack --progress --colors --watch",
"build:dev": "webpack --mode development --progress --colors",
"build:prod": "NODE_ENV=production webpack --progress --colors -p"
},
"dependencies": {
Expand Down
4 changes: 2 additions & 2 deletions config/dev.exs
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ config :sanbase, SanbaseWeb.Endpoint,
"node_modules/webpack/bin/webpack.js",
"--mode",
"development",
"--watch",
"--watch-stdin",
"--display",
"errors-only",
"--color",
cd: Path.expand("../assets", __DIR__)
]
]
Expand Down
5 changes: 3 additions & 2 deletions lib/sanbase_web/live/monitored_twitter_handle_live/index.ex
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ defmodule SanbaseWeb.MonitoredTwitterHandleLive.Index do
<:col :let={row} label="Notes"><%= row.notes %></:col>
<:action :let={row}>
<.button phx-click={JS.push("approve", value: %{id: row.id})}>
Approve
</.button>
<.button phx-click={JS.push("decline", value: %{id: row.id})}>
Decline
</.button>
Expand All @@ -28,13 +31,11 @@ defmodule SanbaseWeb.MonitoredTwitterHandleLive.Index do

@impl true
def handle_event("approve", %{"id" => id}, socket) do
IO.inspect("GOT EVENT")
{:noreply, socket}
end

@impl true
def handle_event("decline", %{"id" => id}, socket) do
IO.inspect("GOT EVENT")
{:noreply, socket}
end

Expand Down

0 comments on commit 6187a8b

Please sign in to comment.