- commented out things I won't have the time to think about
This commit is contained in:
@@ -143,8 +143,6 @@ export default {
|
|||||||
ingredients: ingredientsData,
|
ingredients: ingredientsData,
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(data)
|
|
||||||
|
|
||||||
Spells.addSpell(data)
|
Spells.addSpell(data)
|
||||||
.then(v => {
|
.then(v => {
|
||||||
this.$emit('addSpell', v.data)
|
this.$emit('addSpell', v.data)
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template v-slot:default>
|
<template v-slot:default>
|
||||||
<form id="update-spell" @submit="updateSpell">
|
<form id="update-spell" ref="update-spell" @submit="updateSpell">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="spell_name" class="font-weight-bold col-form-label">Nom :</label>
|
<label for="spell_name" class="font-weight-bold col-form-label">Nom :</label>
|
||||||
<input type="text" class="form-control" name="spell_name" id="spell_name" placeholder="(256 caractères max.)" v-model="spell.name">
|
<input type="text" class="form-control" name="spell_name" id="spell_name" placeholder="(256 caractères max.)" v-model="spell.name">
|
||||||
@@ -60,7 +60,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template v-slot:modal-footer="{ close }">
|
<template v-slot:modal-footer="{ close }">
|
||||||
<button type="button" class="btn btn-secondary" data-dismiss="modal" @click="close()">Fermer</button>
|
<button type="button" class="btn btn-danger" data-dismiss="modal" @click="close()">Fermer</button>
|
||||||
|
<!-- <input type="button" class="btn btn-success" value="Enregistrer comme nouveau" @click="cloneSpell()"> -->
|
||||||
<input type="submit" class="btn btn-primary" value="Enregistrer" form="update-spell">
|
<input type="submit" class="btn btn-primary" value="Enregistrer" form="update-spell">
|
||||||
</template>
|
</template>
|
||||||
</b-modal>
|
</b-modal>
|
||||||
@@ -160,6 +161,8 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
cloneSpell() {
|
||||||
|
},
|
||||||
updateSpell(e) {
|
updateSpell(e) {
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user