fix: Sélection automatique du premier onglet à la connexion (v1.2.5)

- Correction de l'écran blanc après connexion
- Le premier planning s'affiche automatiquement
- Suppression du message "Sélectionnez un centre..."
- Expérience utilisateur plus fluide avec accès direct au contenu
- L'onglet du premier centre est marqué comme actif
This commit is contained in:
Pierre Marx
2025-09-04 15:41:21 -04:00
parent f511a9ad17
commit 6ad4cb9b54
3 changed files with 24 additions and 3 deletions

View File

@@ -285,6 +285,11 @@ function showMainPage() {
// Initialiser l'interface
initializeCenters();
updateStatus('available');
// Sélectionner automatiquement le premier centre/onglet
if (currentCentres.length > 0) {
selectCenter(currentCentres[0].id);
}
}
// === GESTION DES CENTRES ===