From 66a94c2e5fe577458aaeca681a3a4c298a8bf419 Mon Sep 17 00:00:00 2001 From: Zachariah Frank Date: Mon, 18 Mar 2024 15:45:18 +0100 Subject: [PATCH] feat: Display "Processing..." for claimed sites in ResultsTableComponent table row --- .../src/components/results/ResultTableComponent.wc.svelte | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/lib/src/components/results/ResultTableComponent.wc.svelte b/packages/lib/src/components/results/ResultTableComponent.wc.svelte index 6fff2fba..bef39b33 100644 --- a/packages/lib/src/components/results/ResultTableComponent.wc.svelte +++ b/packages/lib/src/components/results/ResultTableComponent.wc.svelte @@ -47,7 +47,7 @@ tableRowData = []; responseStore.forEach((value: Site, key: string): void => { - if (value.status !== "succeeded") return; + if (!["claimed", "succeeded"].includes(value.status)) return; let tableRow: (string | number)[] = []; @@ -65,6 +65,12 @@ tableRow.push(name); return; } + + if (value.status === "claimed") { + tableRow.push("Processing..."); + return; + } + if (header.dataKey) { tableRow.push( getSitePopulationForCode(