forked from shibao/cannery
fixup! centralize allow registration check logic
This commit is contained in:
parent
62b48e5fab
commit
93235558e2
@ -1,6 +1,7 @@
|
|||||||
defmodule CanneryWeb.Live.Component.Topbar do
|
defmodule CanneryWeb.Live.Component.Topbar do
|
||||||
use CanneryWeb, :live_component
|
use CanneryWeb, :live_component
|
||||||
|
|
||||||
|
alias Cannery.{Accounts}
|
||||||
alias CanneryWeb.{HomeLive}
|
alias CanneryWeb.{HomeLive}
|
||||||
|
|
||||||
def mount(socket) do
|
def mount(socket) do
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
defmodule CanneryWeb.LayoutView do
|
defmodule CanneryWeb.LayoutView do
|
||||||
use CanneryWeb, :view
|
use CanneryWeb, :view
|
||||||
|
alias Cannery.{Accounts}
|
||||||
|
|
||||||
def get_title(conn) do
|
def get_title(conn) do
|
||||||
if conn.assigns |> Map.has_key?(:title) do
|
if conn.assigns |> Map.has_key?(:title) do
|
||||||
|
Loading…
Reference in New Issue
Block a user