- Added check to functions to add/edit/remove spells if !user

This commit is contained in:
Alexis
2020-07-17 22:15:32 +02:00
parent d2acdbb179
commit 117d174480
4 changed files with 31 additions and 12 deletions

View File

@@ -57,7 +57,7 @@
<span> = {{variable.description}}</span>
</span>
</div>
<footer class="text-right">
<footer v-if="user" class="text-right">
<a class="h5 text-secondary mr-1">
<i class="mad" @click="editSpell(spell)">edit</i>
</a>
@@ -86,7 +86,12 @@ export default {
}
},
created() {
this.main_school = this.main_school.toLowerCase();
this.main_school = this.main_school.toLowerCase()
},
computed: {
user() {
return this.$store.state.user
}
},
methods: {
editSpell(spell) {