From 8caaa84eaccfe1215cd3c1c67d1a454807db88e3 Mon Sep 17 00:00:00 2001
From: Scott Pouliot
Date: Wed, 13 May 2026 17:00:09 -0400
Subject: [PATCH] Hide Start Intake button when kiosk not activated; relabel
remote link
- Start Intake button only shows when company has an active kiosk token
- Remote Link button renamed to "Send Intake Link" for clarity
Co-Authored-By: Claude Sonnet 4.6
---
.../Controllers/DashboardController.cs | 3 +++
.../Views/Dashboard/Index.cshtml | 15 +++++++++------
2 files changed, 12 insertions(+), 6 deletions(-)
diff --git a/src/PowderCoating.Web/Controllers/DashboardController.cs b/src/PowderCoating.Web/Controllers/DashboardController.cs
index 7faab93..e450755 100644
--- a/src/PowderCoating.Web/Controllers/DashboardController.cs
+++ b/src/PowderCoating.Web/Controllers/DashboardController.cs
@@ -368,6 +368,9 @@ public class DashboardController : Controller
ViewBag.GuidedActivationBanner = BuildGuidedActivationBanner(companyPrefs);
ViewBag.ShopProgressWidget = await BuildShopProgressWidgetAsync(currentCompanyId.Value, companyPrefs);
+
+ var companyForKiosk = await _unitOfWork.Companies.GetByIdAsync(currentCompanyId.Value);
+ ViewBag.KioskActivated = !string.IsNullOrEmpty(companyForKiosk?.KioskActivationToken);
}
return View(vm);
diff --git a/src/PowderCoating.Web/Views/Dashboard/Index.cshtml b/src/PowderCoating.Web/Views/Dashboard/Index.cshtml
index 9964970..41fa7c6 100644
--- a/src/PowderCoating.Web/Views/Dashboard/Index.cshtml
+++ b/src/PowderCoating.Web/Views/Dashboard/Index.cshtml
@@ -33,13 +33,16 @@