summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-11-29 11:50:59 +0100
committerJulius Härtl <jus@bitgrid.net>2018-11-29 13:59:51 +0100
commit38c879ddc3e0b43d3d779913c956ce73a808ae65 (patch)
treeda137507cabdcefbbccaefa15d475e8c4216af9c /src
parent739a060013afa3a15caea875a5448e176f17e79b (diff)
Use serverData mixin
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'src')
-rw-r--r--src/components/ProfileInfo.vue9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/components/ProfileInfo.vue b/src/components/ProfileInfo.vue
index d1f2bd0c..6506e125 100644
--- a/src/components/ProfileInfo.vue
+++ b/src/components/ProfileInfo.vue
@@ -81,12 +81,14 @@
<script>
import { Avatar } from 'nextcloud-vue'
+import serverData from '../mixins/serverData'
export default {
name: 'ProfileInfo',
components: {
Avatar
},
+ mixins: [serverData],
props: {
uid: {
type: String,
@@ -98,17 +100,12 @@ export default {
if (typeof this.accountInfo.displayname !== 'undefined') { return this.accountInfo.displayname.value || '' }
return this.uid
},
- serverData: function() {
- return this.$store.getters.getServerData
- },
accountInfo: function() {
return this.$store.getters.getAccount(this.uid)
}
},
methods: {
- follow() {
- // TODO: implement following users
- }
+
}
}