Added habitica event for profile display (#9576)

This commit is contained in:
Keith Holliday
2017-11-27 10:29:20 -06:00
committed by GitHub
parent ea5ba965e7
commit 3e6b3ce3ff
8 changed files with 46 additions and 21 deletions

View File

@@ -98,9 +98,10 @@ export default {
this.$root.$emit('bv::show::modal', 'inbox-modal');
},
showProfile (startingPage) {
this.$store.state.profileUser = this.user;
this.$store.state.profileOptions.startingPage = startingPage;
this.$root.$emit('bv::show::modal', 'profile');
this.$root.$emit('habitica:show-profile', {
user: this.user,
startingPage,
});
},
showBuyGemsModal (startingPage) {
this.$store.state.gemModalOptions.startingPage = startingPage;