From 766117d0e79f6912f007d64d2f62d457c631606f Mon Sep 17 00:00:00 2001 From: gsovereignty Date: Sat, 11 Nov 2023 12:32:14 +0800 Subject: [PATCH] problem: can't see who claimed a problem --- .../problems/LogNewProblemModal.svelte | 2 +- src/lib/stores/nostrocket_state/types.ts | 3 -- src/routes/problems/[id]/+page.svelte | 37 ++++++++----------- 3 files changed, 17 insertions(+), 25 deletions(-) diff --git a/src/components/problems/LogNewProblemModal.svelte b/src/components/problems/LogNewProblemModal.svelte index 828b971..4152b89 100644 --- a/src/components/problems/LogNewProblemModal.svelte +++ b/src/components/problems/LogNewProblemModal.svelte @@ -124,7 +124,7 @@ + }}>{#if parent?.UID.length == 64}Log a sub-problem{:else}New Problem Now{/if} { {problem?.Title}

Logged by {createdBy?.name}

- - - - - - - - - + @@ -130,9 +122,11 @@ function updateStatus(newStatus:string):Promise {

- -    - {problem?.Closed ? 'Closed' : 'Open'} + {#if problem?.Status == "open" && problem.Children.size > 0} HAS OPEN CHILDREN {/if} + {#if problem?.Status == "open" && problem.Children.size == 0} OPEN AND CAN BE CLAIMED {/if} + {#if problem?.Status == "claimed"} {/if} + {#if problem?.Status == "patched"} PATCHED AND WAITING FOR VALIDATION {/if} + {#if problem?.Status == "patched"} PATCHED AND WAITING FOR VALIDATION {/if}

@@ -144,26 +138,27 @@ function updateStatus(newStatus:string):Promise { - + -
+

Logged by {createdBy?.name}

+ {#if problem?.Status == "claimed"}

Claimed by {claimedBy?.name}

{/if}
- -
Comments
-
- - [TODO] +
-
Take Action
+ + +
+ +