Finish 2 days room limit

- Create modal to register when limit is past
 - Create modal to share the link
 - Use UrlManager to check if limit room is active

Signed-off-by: Gregoire Parant <g.parant@thecodingmachine.com>
This commit is contained in:
Gregoire Parant 2021-12-23 13:09:28 +01:00
parent 60f4cf75c3
commit fd64fc43a4
12 changed files with 194 additions and 11 deletions

View file

@ -11,7 +11,8 @@ import { loginSceneVisibleIframeStore } from "../Stores/LoginSceneStore";
import { userIsConnected, warningContainerStore } from "../Stores/MenuStore";
import { analyticsClient } from "../Administration/AnalyticsClient";
import { axiosWithRetry } from "./AxiosUtils";
import { limitMap } from "../Stores/GameStore";
import {limitMapStore} from "../Stores/GameStore";
import {showLimitRoomModalStore} from "../Stores/ModalStore";
class ConnectionManager {
private localUser!: LocalUser;
@ -233,7 +234,12 @@ class ConnectionManager {
//if limit room active test headband
if (connexionType === GameConnexionTypes.limit) {
warningContainerStore.activateWarningContainer();
limitMap.set(true);
limitMapStore.set(true);
//check time of map
if(!urlManager.isActiveLimitRoom){
showLimitRoomModalStore.set(true);
}
}
this.serviceWorker = new _ServiceWorker();