diff --git a/science-quest/src/components/jeux/kahoot/Kahoot.vue b/science-quest/src/components/jeux/kahoot/Kahoot.vue index 4513386..6b47bc8 100644 --- a/science-quest/src/components/jeux/kahoot/Kahoot.vue +++ b/science-quest/src/components/jeux/kahoot/Kahoot.vue @@ -51,6 +51,8 @@ export default { //rejoindre sa propre partie this.codeKahootARejoindre=kahoot.codeInvitation this.rejoindrePartie() + //afficher le bouton qui uniquement la pour le créateur de la partie + window.setTimeout(function(){boutonDemarrerKahoot.style.visibility=""}, 1000) }) }, // TODO : demander a l'api de rejoindre un kahoot (et rediriger vers la partie si possible via HATEOAS) diff --git a/science-quest/src/components/jeux/kahoot/KahootPartie.vue b/science-quest/src/components/jeux/kahoot/KahootPartie.vue index 5d2b839..b116180 100644 --- a/science-quest/src/components/jeux/kahoot/KahootPartie.vue +++ b/science-quest/src/components/jeux/kahoot/KahootPartie.vue @@ -106,9 +106,6 @@ export default { //afficher cet etat this.etats.salleAttente=true this.kahootAPI.obtenirSalleAttente().then(response=>{ - //TODO ENLEVER - this.kahootAPI.demarrerPartie().then() - //FIN DEBUG this.tempsLimite=response.tempsLimite this.salleAttente=response @@ -148,6 +145,9 @@ export default { window.setTimeout(this.animerIncrementationPoints,5) } }, + demarrerPartie(){ + this.kahootAPI.demarrerPartie().then(boutonDemarrerKahoot.style.visibility="hidden") + } } } @@ -192,6 +192,7 @@ export default { {{ joueur }} + \ No newline at end of file