diff --git a/src/lib/components/crew/AssignPhantomModal.svelte b/src/lib/components/crew/AssignPhantomModal.svelte new file mode 100644 index 00000000..e91c25c7 --- /dev/null +++ b/src/lib/components/crew/AssignPhantomModal.svelte @@ -0,0 +1,219 @@ + + + + + + + + + {#if assignSuccess} + + + Phantom assigned successfully! + + {:else if membersQuery.isLoading} + + Loading members... + + {:else if availableMembers.length === 0} + + No crew members available to assign. + + {:else} + + {#each availableMembers as member} + (selectedMemberId = member.id)} + > + {member.user?.username ?? 'Unknown'} + {#if selectedMemberId === member.id} + + {/if} + + {/each} + + + {#if assignError} + + {assignError} + + {/if} + {/if} + + + {#if !assignSuccess} + + {/if} + + + diff --git a/src/lib/components/crew/ConfirmClaimModal.svelte b/src/lib/components/crew/ConfirmClaimModal.svelte new file mode 100644 index 00000000..603e60d2 --- /dev/null +++ b/src/lib/components/crew/ConfirmClaimModal.svelte @@ -0,0 +1,152 @@ + + + + + + + + + {#if confirmSuccess} + + + Claim confirmed! You have inherited the phantom's scores and join date. + + {:else} + + + Are you sure you want to claim {phantom?.name ?? 'this phantom'}? + + + You will inherit this phantom's GW scores and join date. This action cannot be undone. + + + {#if confirmError} + + {confirmError} + + {/if} + + {/if} + + + {#if !confirmSuccess} + + {/if} + + +
Phantom assigned successfully!
Loading members...
No crew members available to assign.
{assignError}
Claim confirmed! You have inherited the phantom's scores and join date.
+ Are you sure you want to claim {phantom?.name ?? 'this phantom'}? +
+ You will inherit this phantom's GW scores and join date. This action cannot be undone. +
{confirmError}