ajouter un bouton demarrer partie (uniquement visible par le createur de la partie)

front
Gwenael PLANCHON 1 year ago
parent e97d61f8e1
commit ffbea06d83

@ -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)

@ -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 }}
</li>
</ul>
<button style="visibility: hidden" id="boutonDemarrerKahoot" @click="demarrerPartie()">Démarrer la partie</button>
</div>
</div>
</template>
Loading…
Cancel
Save