Final reg status handling tweaks

This commit is contained in:
Claude Brisson
2024-01-20 11:35:59 +01:00
parent 5890ba6f41
commit 0fba3e065c
3 changed files with 11 additions and 3 deletions

View File

@@ -288,6 +288,8 @@ onLoad(() => {
}).then(player => {
if (player !== 'error') {
cell.toggleClass('final');
standingsUpToDate = false;
pairablesUpToDate = false;
}
});
e.preventDefault();

View File

@@ -74,6 +74,7 @@
const tour_rounds = ${tour.rounds};
let activeRound = ${round};
let standingsUpToDate = true;
let pairablesUpToDate = true;
// $params
#end
#set($datepickerLocale = $translate.datepickerLocale($request.lang, $request.loc))
@@ -108,6 +109,8 @@
window.location.hash = `#${step}`;
if (step === 'standings' && !standingsUpToDate) {
window.location.reload();
} else if (step === 'pairing' && !pairablesUpToDate) {
window.location.reload();
}
}