Skip to content
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

Feat/version phoenix #97

Closed
wants to merge 2 commits into from
Closed
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
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ defmodule KantaWeb.Translations.ApplicationSourceFormLive do
socket =
case Translations.update_application_source(application_source, attrs) do
{:ok, _application_source} ->
push_redirect(socket, to: dashboard_path(socket, "/application_sources"))
push_navigate(socket, to: dashboard_path(socket, "/application_sources"))

{:error, changeset} ->
assign(socket, :form, to_form(changeset))
Expand All @@ -67,7 +67,7 @@ defmodule KantaWeb.Translations.ApplicationSourceFormLive do
socket =
case Translations.create_application_source(attrs) do
{:ok, _application_source} ->
push_redirect(socket, to: dashboard_path(socket, "/application_sources"))
push_navigate(socket, to: dashboard_path(socket, "/application_sources"))

{:error, changeset} ->
assign(socket, :form, to_form(changeset))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ defmodule KantaWeb.Translations.ApplicationSourcesLive do
end

def handle_event("navigate", %{"to" => to}, socket) do
{:noreply, push_redirect(socket, to: "/kanta" <> to)}
{:noreply, push_navigate(socket, to: "/kanta" <> to)}
end

def handle_event("page_changed", %{"index" => page_number}, socket) do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ defmodule KantaWeb.Translations.ContextsLive do
end

def handle_event("navigate", %{"to" => to}, socket) do
{:noreply, push_redirect(socket, to: dashboard_path(socket) <> to)}
{:noreply, push_navigate(socket, to: dashboard_path(socket) <> to)}
end

def handle_event("page_changed", %{"index" => page_number}, socket) do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ defmodule KantaWeb.Translations.DomainsLive do
end

def handle_event("navigate", %{"to" => to}, socket) do
{:noreply, push_redirect(socket, to: dashboard_path(socket) <> to)}
{:noreply, push_navigate(socket, to: dashboard_path(socket) <> to)}
end

def handle_event("page_changed", %{"index" => page_number}, socket) do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ defmodule KantaWeb.Translations.PluralTranslationForm do
})

{:noreply,
push_redirect(socket,
push_navigate(socket,
to:
dashboard_path(socket, "/locales/#{locale.id}/translations" <> get_query(socket.assigns))
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ defmodule KantaWeb.Translations.SingularTranslationForm do
Translations.update_singular_translation(translation, %{"translated_text" => translated})

{:noreply,
push_redirect(socket,
push_navigate(socket,
to:
dashboard_path(socket, "/locales/#{locale.id}/translations" <> get_query(socket.assigns))
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ defmodule KantaWeb.Translations.TranslationsLive do
end

def handle_event("navigate", %{"to" => to}, socket) do
{:noreply, push_redirect(socket, to: dashboard_path(socket) <> to)}
{:noreply, push_navigate(socket, to: dashboard_path(socket) <> to)}
end

def handle_event("page_changed", %{"index" => page_number}, socket) do
Expand Down
10 changes: 5 additions & 5 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ defmodule Kanta.MixProject do
{:expo, "~> 0.3"},
{:ecto, "~> 3.12"},
{:ecto_sql, "~> 3.12"},
{:phoenix, "~> 1.7.0"},
{:phoenix_view, "~> 2.0"},
{:phoenix_live_view, "~> 0.20"},
{:phoenix_html, "~> 4.0"},
{:phoenix_html_helpers, "~> 1.0"},
{:phoenix, "~> 1.7.14"},
{:phoenix_view, "~> 2.0.4"},
{:phoenix_live_view, "~> 1.0.0-rc.7"},
{:phoenix_html, "~> 4.1.1"},
{:phoenix_html_helpers, "~> 1.0.1"},
{:tailwind, "~> 0.2", runtime: Mix.env() == :dev},
{:jason, "~> 1.0"},
{:nebulex, "~> 2.5"},
Expand Down
50 changes: 25 additions & 25 deletions mix.lock

Large diffs are not rendered by default.

Loading