|
|
@ -38,6 +38,9 @@ export default {
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
// TODO : demander a l'api de creer un kahoot (et rediriger vers la partie si possible via HATEOAS)
|
|
|
|
// TODO : demander a l'api de creer un kahoot (et rediriger vers la partie si possible via HATEOAS)
|
|
|
|
creerKahoot: function () {
|
|
|
|
creerKahoot: function () {
|
|
|
|
|
|
|
|
if(!formCreerKahoot.checkValidity()){
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
}
|
|
|
|
const partie=new KahootPartie({
|
|
|
|
const partie=new KahootPartie({
|
|
|
|
"thematiques": this.choixThematiques,
|
|
|
|
"thematiques": this.choixThematiques,
|
|
|
|
"idDifficulte": this.choixDifficulte
|
|
|
|
"idDifficulte": this.choixDifficulte
|
|
|
@ -98,7 +101,7 @@ export default {
|
|
|
|
<div class="modal-header">
|
|
|
|
<div class="modal-header">
|
|
|
|
<h2 class="modal-title" id="creationKahoot">Créer un Kahoot</h2>
|
|
|
|
<h2 class="modal-title" id="creationKahoot">Créer un Kahoot</h2>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<form @submit.prevent>
|
|
|
|
<form id="formCreerKahoot" @submit.prevent>
|
|
|
|
<div class="modal-body">
|
|
|
|
<div class="modal-body">
|
|
|
|
<!--div>
|
|
|
|
<!--div>
|
|
|
|
<label for="Kahoot-Create-Title">Titre</label>
|
|
|
|
<label for="Kahoot-Create-Title">Titre</label>
|
|
|
|