chore: use navigate instead of href for live views
This commit is contained in:
parent
7235ad0d00
commit
cdccbb1919
1 changed files with 3 additions and 3 deletions
|
@ -26,7 +26,7 @@ defmodule ComfycampWeb.NavBar do
|
|||
<.link :if={@current_user.is_admin} href={~p"/admin"}>
|
||||
Админка
|
||||
</.link>
|
||||
<.link href={~p"/users/settings"}>
|
||||
<.link navigate={~p"/users/settings"}>
|
||||
Настройки
|
||||
</.link>
|
||||
|
||||
|
@ -34,11 +34,11 @@ defmodule ComfycampWeb.NavBar do
|
|||
Выйти
|
||||
</.link>
|
||||
<% else %>
|
||||
<.link href={~p"/users/register"}>
|
||||
<.link navigate={~p"/users/register"}>
|
||||
Зарегистрироваться
|
||||
</.link>
|
||||
|
||||
<.link href={~p"/users/log_in"}>
|
||||
<.link navigate={~p"/users/log_in"}>
|
||||
Войти
|
||||
</.link>
|
||||
<% end %>
|
||||
|
|
Loading…
Reference in a new issue