diff --git a/science-quest/src/components/jeux/kahoot/Kahoot.vue b/science-quest/src/components/jeux/kahoot/Kahoot.vue index a5b4a87..216e406 100644 --- a/science-quest/src/components/jeux/kahoot/Kahoot.vue +++ b/science-quest/src/components/jeux/kahoot/Kahoot.vue @@ -46,7 +46,13 @@ export default { "thematiques": this.choixThematiques, "idDifficulte": this.choixDifficulte }) - partie.creerPartie().then(a=>console.log(a)) + partie.creerPartie().then(kahoot=>{ + //fermer la popup + fermerPopup.click() + //rejoindre sa propre partie + this.codeKahootARejoindre=kahoot.codeInvitation + this.rejoindrePartie() + }) }, // TODO : demander a l'api de rejoindre un kahoot (et rediriger vers la partie si possible via HATEOAS) rejoindrePartie(){ @@ -126,7 +132,7 @@ export default {