From db6d414b3ab093b5f1caf7d139ef56ebc98e29a4 Mon Sep 17 00:00:00 2001 From: Max Veytsman Date: Wed, 5 Jun 2024 10:38:26 -0400 Subject: [PATCH] Show "You" when assigned (#378) --- lib/bike_brigade_web/live/campaign_signup_live/show.ex | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/bike_brigade_web/live/campaign_signup_live/show.ex b/lib/bike_brigade_web/live/campaign_signup_live/show.ex index 1174d879..8a7de720 100644 --- a/lib/bike_brigade_web/live/campaign_signup_live/show.ex +++ b/lib/bike_brigade_web/live/campaign_signup_live/show.ex @@ -215,11 +215,15 @@ defmodule BikeBrigadeWeb.CampaignSignupLive.Show do def signup_button(assigns) do ~H""" -
+
<%= if @task.assigned_rider do %> - +
<%= split_first_name(@task.assigned_rider.name) %> - +
+ +
+ You +
<.button :if={task_eligigle_for_unassign(@task, @campaign, @current_rider_id)}