Implement URL handling for profile modal (#10844)

* Implement URL handling for profile modal

* Fix issue where paths would break when using back button

* move tiers import to index
This commit is contained in:
Phillip Thelen
2019-02-07 17:25:30 +01:00
committed by Matteo Pagliazzi
parent 93290ec6d5
commit 63f5773172
14 changed files with 476 additions and 315 deletions

View File

@@ -239,10 +239,7 @@ export default {
// Open the modal only if the data is available
if (profile && !profile.rejected) {
this.$root.$emit('habitica:show-profile', {
user: profile,
startingPage: 'profile',
});
this.$router.push({name: 'userProfile', params: {userId: profile._id}});
}
},
messageLiked (message) {