mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-08-23 11:36:19 -05:00
Can choose "Look again" even if not captain
This commit is contained in:
@@ -10,7 +10,7 @@ export function FinishedGroup() {
|
||||
return (
|
||||
<div className="container">
|
||||
<div className="play-looking__waves">
|
||||
<GroupCard group={data.ownGroup} lookingForMatch={false} />
|
||||
<GroupCard group={data.ownGroup} showAction={false} />
|
||||
<div className="play-looking__waves-text">
|
||||
This is your group! You can reach out to them on{" "}
|
||||
<a href={DISCORD_URL}>our Discord</a> in the #group-meetup channel.
|
||||
@@ -18,17 +18,15 @@ export function FinishedGroup() {
|
||||
</div>
|
||||
<div className="play-looking__waves-button">
|
||||
<Form method="post">
|
||||
{data.isCaptain && (
|
||||
<Button
|
||||
type="submit"
|
||||
name="_action"
|
||||
value="LOOK_AGAIN"
|
||||
tiny
|
||||
variant="outlined"
|
||||
>
|
||||
Look again
|
||||
</Button>
|
||||
)}
|
||||
<Button
|
||||
type="submit"
|
||||
name="_action"
|
||||
value="LOOK_AGAIN"
|
||||
tiny
|
||||
variant="outlined"
|
||||
>
|
||||
Look again
|
||||
</Button>
|
||||
</Form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -15,7 +15,7 @@ export function GroupCard({
|
||||
isOwnGroup = false,
|
||||
}: {
|
||||
group: LookingLoaderDataGroup;
|
||||
action: Exclude<LookingActionSchema["_action"], "UNEXPIRE">;
|
||||
action?: Exclude<LookingActionSchema["_action"], "UNEXPIRE">;
|
||||
showAction: boolean;
|
||||
ranked?: boolean;
|
||||
isOwnGroup?: boolean;
|
||||
|
||||
@@ -164,7 +164,6 @@ export const action: ActionFunction = async ({ request, context }) => {
|
||||
break;
|
||||
}
|
||||
case "LOOK_AGAIN": {
|
||||
validateIsGroupAdmin();
|
||||
await LFGGroup.setInactive(ownGroup.id);
|
||||
return redirect("/play");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user