- Finished implementing update methods (needs polish tbh)

This commit is contained in:
Alexis
2020-06-13 11:23:29 +02:00
parent 678736b8cc
commit 2f81a58ff6
6 changed files with 159 additions and 192 deletions

View File

@@ -3,7 +3,7 @@
<div v-masonry transition-duration=".5s" item-selector=".spell-card" class="row spells-list">
<spell-card v-masonry-tile class="spell-card" v-for="(spell, index) in spells" :key="index" v-bind:spell="spell" @editSpell="editSpell"/>
</div>
<edit-spell-card v-if="Object.keys(active_spell).length > 0" v-bind:spell="active_spell"/>
<edit-spell-card v-if="Object.keys(active_spell).length > 0" v-bind:spell="active_spell" @editSpell="editSpell"/>
</div>
</template>
@@ -32,8 +32,6 @@ export default {
created() {
this.computeSpells()
},
mounted() {
},
methods: {
async fetchSpells() {
const { data } = await Spells.getSpells()