- 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

@@ -1,17 +1,20 @@
<template>
<div class="container-fluid p-4" id="spell-container">
<h1 class="display-3 font-display mb-3">{{ user.name }}</h1>
<div class="display-3 font-display mb-3">
<span class="username">{{ user.name }}</span>
<span v-if="user.verified" class="verified"><i class="mad">check_circle</i></span>
</div>
</div>
</template>
<script>
export default {
name: 'profile-page',
data() {
return {
user: this.$cookies.get("U_"),
computed: {
user() {
return this.$store.state.user
}
}
},
}
</script>