disabling custom room input

This commit is contained in:
Jack 2021-04-13 22:20:18 +01:00
parent 50f2161c43
commit dcf1af65cf
3 changed files with 6 additions and 0 deletions

View file

@ -27,6 +27,7 @@ export function resetBanner() {
export function disableLobbyButtons() {
$(".pageTribe .prelobby .matchmaking .buttons .button").addClass("disabled");
$(".pageTribe .prelobby .privateRooms .button").addClass("disabled");
$(".pageTribe .prelobby .privateRooms .customInput").addClass("disabled");
}
export function enableLobbyButtons() {
@ -34,6 +35,7 @@ export function enableLobbyButtons() {
"disabled"
);
$(".pageTribe .prelobby .privateRooms .button").removeClass("disabled");
$(".pageTribe .prelobby .privateRooms .customInput").removeClass("disabled");
}
export function showLeaveQueueButton() {

View file

@ -2002,6 +2002,7 @@ $(
});
$(".pageTribe .prelobby #joinByCode .customInput").click((e) => {
if ($(e.currentTarget).hasClass("disabled")) return;
$(".pageTribe .prelobby #joinByCode input").focus();
});

View file

@ -3729,6 +3729,9 @@ key {
color: var(--main-color);
}
}
&.disabled {
opacity: 0.5;
}
}
}
}