diff --git a/client/api/schoolsRepository.js b/client/api/schoolsRepository.js index c24117c..6c33e11 100644 --- a/client/api/schoolsRepository.js +++ b/client/api/schoolsRepository.js @@ -11,4 +11,7 @@ export default { getSchool(id) { return api.get(`${resource}/${id}`) }, + getSpellsFromSchool(id) { + return api.get(`${resource}/${id}/spells`) + } } \ No newline at end of file diff --git a/client/src/components/spells/add-spell-card.vue b/client/src/components/spells/add-spell-card.vue index 175105d..50b645f 100644 --- a/client/src/components/spells/add-spell-card.vue +++ b/client/src/components/spells/add-spell-card.vue @@ -1,5 +1,9 @@ @@ -82,6 +89,9 @@ export default { name: "", description: "", is_ritual: false, + level: 0, + cost: "0", + charge: 0, schools: [], variables: [], ingredients: [], diff --git a/client/src/components/spells/edit-spell-card.vue b/client/src/components/spells/edit-spell-card.vue index 4c6f65d..2d60b16 100644 --- a/client/src/components/spells/edit-spell-card.vue +++ b/client/src/components/spells/edit-spell-card.vue @@ -1,11 +1,17 @@