From fefe7c8aa5053b0d1befcb268a3c063bcb3b0411 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20N=C3=A9grier?= Date: Fri, 24 Dec 2021 13:48:35 +0100 Subject: [PATCH] Removing the "Ask others to follow you?" popup No need to ask twice, the user just pressed the "follow" button. --- front/src/Components/FollowMenu/FollowMenu.svelte | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/front/src/Components/FollowMenu/FollowMenu.svelte b/front/src/Components/FollowMenu/FollowMenu.svelte index c38571bd..035bc06f 100644 --- a/front/src/Components/FollowMenu/FollowMenu.svelte +++ b/front/src/Components/FollowMenu/FollowMenu.svelte @@ -58,6 +58,7 @@ vim: ft=typescript function sendFollowRequest() { gameScene.connection?.emitFollowRequest(); + followRoleStore.set(followRoles.leader); followStateStore.set(followStates.active); } @@ -75,11 +76,6 @@ vim: ft=typescript followUsersStore.stopFollowing(); } - function request() { - followStateStore.set(followStates.requesting); - followRoleStore.set(followRoles.leader); - } - function onKeyDown(e: KeyboardEvent) { if (e.key === "Escape") { reset(); @@ -106,12 +102,7 @@ vim: ft=typescript {:else if followRole === followRoles.leader}
-

Ask others to follow you?

-
-
- - +

Should never be displayed

{/if} @@ -160,7 +151,7 @@ vim: ft=typescript {/if}