verifier le form avant d'envoyer
continuous-integration/drone/push Build is passing Details

front
Gwenael PLANCHON 1 year ago
parent 783ea67092
commit 2462abfee9

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

Loading…
Cancel
Save