Skip to content

Commit

Permalink
Update deps. Bump version to 0.3.0 (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
mickel8 authored Jun 28, 2024
1 parent ef2b69e commit 9498f12
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ In most cases you can skip this step as `Phoenix` comes with `LiveDashboard` ena
```elixir
def deps do
[
{:ex_webrtc_dashboard, "~> 0.2.0"}
{:ex_webrtc_dashboard, "~> 0.3.0"}
]
end
```
Expand Down
6 changes: 3 additions & 3 deletions lib/ex_webrtc_dashboard.ex
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ defmodule ExWebRTCDashboard do

nav == nil ->
to = live_dashboard_path(socket, socket.assigns.page, nav: List.first(Map.keys(pc_pids)))
{:ok, push_redirect(socket, to: to)}
{:ok, push_navigate(socket, to: to)}

nav != nil and pc_pids == %{} ->
# don't do anything, render will inform that we are waiting for peer connections
Expand All @@ -60,7 +60,7 @@ defmodule ExWebRTCDashboard do
# redirect to any other pc
nav = List.first(Map.keys(pc_pids))
to = live_dashboard_path(socket, socket.assigns.page, nav: nav)
{:ok, push_redirect(socket, to: to)}
{:ok, push_navigate(socket, to: to)}
end
end
end
Expand Down Expand Up @@ -100,7 +100,7 @@ defmodule ExWebRTCDashboard do
socket.assigns.current_pc_str == nil and pc_pids != %{} ->
nav = List.first(Map.keys(socket.assigns.pc_pids))
to = live_dashboard_path(socket, socket.assigns.page, nav: nav)
{:noreply, push_redirect(socket, to: to)}
{:noreply, push_navigate(socket, to: to)}

socket.assigns.current_pc_str == nil ->
{:noreply, socket}
Expand Down
4 changes: 2 additions & 2 deletions mix.exs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule ExWebRTCDashboard.MixProject do
use Mix.Project

@version "0.2.0"
@version "0.3.0"
@source_url "https://github.com/elixir-webrtc/ex_webrtc_dashboard"

def project do
Expand Down Expand Up @@ -42,7 +42,7 @@ defmodule ExWebRTCDashboard.MixProject do
defp deps do
[
{:phoenix_live_dashboard, "~> 0.8.3"},
{:ex_webrtc, github: "elixir-webrtc/ex_webrtc"},
{:ex_webrtc, "~> 0.3.0"},
{:ex_doc, "~> 0.31.0", only: :dev, runtime: false}
]
end
Expand Down
Loading

0 comments on commit 9498f12

Please sign in to comment.