From af6568117979361b532556222bdebf723e29c913 Mon Sep 17 00:00:00 2001 From: kitos Date: Sat, 4 Jul 2026 11:56:04 +0200 Subject: [PATCH] fix(campaigns): hide direct remove-test button on active campaigns MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Direct test removal is now gated to draft-only at the service layer (active campaigns must go through a modification request that a manager approves). The trash-icon button on the tests table still showed for active campaigns and would always fail with a 400 — restrict it to draft, matching the backend gate. --- frontend/src/pages/CampaignDetailPage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/pages/CampaignDetailPage.tsx b/frontend/src/pages/CampaignDetailPage.tsx index 5655507..7b7db52 100644 --- a/frontend/src/pages/CampaignDetailPage.tsx +++ b/frontend/src/pages/CampaignDetailPage.tsx @@ -734,7 +734,7 @@ export default function CampaignDetailPage() { > - {canManage && (campaign.status === "draft" || campaign.status === "active") && ( + {canManage && campaign.status === "draft" && (