From 93235558e280e3c408efd524c4844640fb535416 Mon Sep 17 00:00:00 2001 From: shibao Date: Fri, 10 Sep 2021 00:30:08 -0400 Subject: [PATCH] fixup! centralize allow registration check logic --- lib/cannery_web/live/component/topbar.ex | 1 + lib/cannery_web/views/layout_view.ex | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/cannery_web/live/component/topbar.ex b/lib/cannery_web/live/component/topbar.ex index 0718d48..3239451 100644 --- a/lib/cannery_web/live/component/topbar.ex +++ b/lib/cannery_web/live/component/topbar.ex @@ -1,6 +1,7 @@ defmodule CanneryWeb.Live.Component.Topbar do use CanneryWeb, :live_component + alias Cannery.{Accounts} alias CanneryWeb.{HomeLive} def mount(socket) do diff --git a/lib/cannery_web/views/layout_view.ex b/lib/cannery_web/views/layout_view.ex index 2da93b8..1207d13 100644 --- a/lib/cannery_web/views/layout_view.ex +++ b/lib/cannery_web/views/layout_view.ex @@ -1,5 +1,6 @@ defmodule CanneryWeb.LayoutView do use CanneryWeb, :view + alias Cannery.{Accounts} def get_title(conn) do if conn.assigns |> Map.has_key?(:title) do