From 2346a82a46cfb17f78422efe592655eaa8f8efd5 Mon Sep 17 00:00:00 2001 From: shibao Date: Mon, 30 Dec 2024 19:21:50 -0500 Subject: [PATCH] fix new invite button not working --- lib/memex_web/live/invite_live/index.html.heex | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/memex_web/live/invite_live/index.html.heex b/lib/memex_web/live/invite_live/index.html.heex index 1168476..edf81d1 100644 --- a/lib/memex_web/live/invite_live/index.html.heex +++ b/lib/memex_web/live/invite_live/index.html.heex @@ -1,14 +1,14 @@ -
-

+
+

<%= gettext("invites") %>

<%= if @invites |> Enum.empty?() do %> -

+

<%= gettext("no invites 😔") %>

- <.link patch={~p"/invites"} class="ml-auto btn btn-primary"> + <.link patch={~p"/invites/new"} class="ml-auto btn btn-primary"> <%= dgettext("actions", "new invite") %> <% end %> @@ -86,7 +86,7 @@ - <.link :if={@invites != []} patch={~p"/invites/new"} class="btn btn-primary ml-auto"> + <.link :if={@invites != []} patch={~p"/invites/new"} class="ml-auto btn btn-primary"> <%= dgettext("actions", "create invite") %>
@@ -94,7 +94,7 @@ <%= unless @admins |> Enum.empty?() do %>
-

+

<%= gettext("admins") %>

@@ -122,7 +122,7 @@ <%= unless @users |> Enum.empty?() do %>
-

+

<%= gettext("users") %>