diff options
Diffstat (limited to 'app/assets/javascripts/profile/index.js')
-rw-r--r-- | app/assets/javascripts/profile/index.js | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/app/assets/javascripts/profile/index.js b/app/assets/javascripts/profile/index.js index 101e52c873e..198ffdb434b 100644 --- a/app/assets/javascripts/profile/index.js +++ b/app/assets/javascripts/profile/index.js @@ -13,17 +13,32 @@ export const initProfileTabs = () => { if (!el) return false; - const { followees, followers, userCalendarPath, utcOffset, userId } = el.dataset; + const { + followeesCount, + followersCount, + userCalendarPath, + userActivityPath, + utcOffset, + userId, + snippetsEmptyState, + } = el.dataset; + + const apolloProvider = new VueApollo({ + defaultClient: createDefaultClient(), + }); return new Vue({ el, + apolloProvider, name: 'ProfileRoot', provide: { - followees: parseInt(followers, 10), - followers: parseInt(followees, 10), + followeesCount: parseInt(followeesCount, 10), + followersCount: parseInt(followersCount, 10), userCalendarPath, + userActivityPath, utcOffset, userId, + snippetsEmptyState, }, render(createElement) { return createElement(ProfileTabs); |