Skip to content
Snippets Groups Projects
Commit 0a4ddd3e authored by Angelina Filippova's avatar Angelina Filippova
Browse files

Fix mounting component

parent 005c8ff1
No related branches found
No related tags found
No related merge requests found
<template>
<main>
<div v-if="!loading">
<header v-if="isDesktop || isTablet" class="user-page-header">
<div class="avatar-name-container">
<el-avatar v-if="accountExists(user, 'avatar')" :src="user.avatar" size="large" />
......@@ -29,7 +29,7 @@
<div class="status-container">
<status :status="status" :account="user" :show-checkbox="false" :godmode="showPrivate"/>
</div>
</main>
</div>
</template>
<script>
......@@ -56,6 +56,9 @@ export default {
isTablet() {
return this.$store.state.app.device === 'tablet'
},
loading() {
return this.$store.state.status.loading
},
status() {
return this.$store.state.status.fetchedStatus
},
......@@ -63,7 +66,7 @@ export default {
return this.$store.state.status.fetchedStatus.account
}
},
mounted: function() {
beforeMount: function() {
this.$store.dispatch('NeedReboot')
this.$store.dispatch('GetNodeInfo')
this.$store.dispatch('FetchStatus', this.$route.params.id)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment