diff options
author | Julius Härtl <jus@bitgrid.net> | 2018-11-29 11:44:59 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2018-11-29 13:59:51 +0100 |
commit | 61f8bcf9cd7c5ae3f563cd48f1763b26256d4046 (patch) | |
tree | 0754dbce0c16ec106b71e1815e6e8aad5fde1471 /src/App.vue | |
parent | 59858d546d6c564e94172fb1124c1c9a6e8b12b6 (diff) |
Use mixin for current user data
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'src/App.vue')
-rw-r--r-- | src/App.vue | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/App.vue b/src/App.vue index d27f5c4d..8d1f4c34 100644 --- a/src/App.vue +++ b/src/App.vue @@ -63,6 +63,7 @@ import axios from 'nextcloud-axios' import TimelineEntry from './components/TimelineEntry' import ProfileInfo from './components/ProfileInfo' import Search from './components/Search' +import currentuserMixin from './mixins/currentUserMixin' export default { name: 'App', @@ -75,6 +76,7 @@ export default { ProfileInfo, Search }, + mixins: [currentuserMixin], data: function() { return { infoHidden: false, @@ -84,21 +86,9 @@ export default { } }, computed: { - url: function() { - return OC.linkTo('social', 'img/nextcloud.png') - }, - currentUser: function() { - return OC.getCurrentUser() - }, - socialId: function() { - return '@' + OC.getCurrentUser().uid + '@' + OC.getHost() - }, timeline: function() { return this.$store.getters.getTimeline }, - serverData: function() { - return this.$store.getters.getServerData - }, menu: function() { let defaultCategories = [ { |