Skip to content

Update deps. Bump version to 0.3.0 #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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