- woo finished addspell methods, need some error handling now but not now

This commit is contained in:
Alexis
2020-06-13 19:48:47 +02:00
parent 0229f356e3
commit 6bc1f21fae
5 changed files with 191 additions and 7 deletions

View File

@@ -164,6 +164,9 @@ export default {
name: this.spell.name,
description: this.spell.description,
is_ritual: !!+this.spell.is_ritual,
level: parseInt(this.spell.level),
cost: this.spell.cost,
charge: parseInt(this.spell.charge),
schools: schoolsData,
variables: variablesData,
ingredients: ingredientsData,
@@ -173,6 +176,9 @@ export default {
.then(v => {
this.$emit('updateSpell', v.data)
})
.catch(err => {
console.log(err)
})
},
}
}
@@ -181,5 +187,6 @@ export default {
<style lang="scss" scoped>
textarea, select {
min-height: 10rem;
max-height: 20rem;
}
</style>