Ensure action requested status readonly as well
This commit is contained in:
@@ -120,7 +120,10 @@
|
||||
ACTIVITIES.filter((a) => verf[a] !== "unset").length,
|
||||
);
|
||||
const allReviewed = $derived(reviewedCount === ACTIVITIES.length);
|
||||
const isReadOnly = $derived(verification?.status === "completed");
|
||||
const isReadOnly = $derived(
|
||||
verification?.status === "completed" ||
|
||||
verification?.status === "action_requested",
|
||||
);
|
||||
|
||||
async function load() {
|
||||
loading = true;
|
||||
@@ -421,9 +424,11 @@
|
||||
</button>
|
||||
|
||||
{#if isReadOnly}
|
||||
<span class="text-sm opacity-70"
|
||||
>This verification is completed and read-only.</span
|
||||
>
|
||||
<span class="text-sm opacity-70">
|
||||
{v.status === "completed"
|
||||
? "This verification is completed and read-only."
|
||||
: "This verification is waiting on the player to resubmit and is read-only."}
|
||||
</span>
|
||||
{:else}
|
||||
<div class="flex items-center gap-2">
|
||||
{#if !allReviewed}
|
||||
|
||||
Reference in New Issue
Block a user