mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
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:
committed by
Matteo Pagliazzi
parent
93290ec6d5
commit
63f5773172
@@ -102,10 +102,7 @@ export default {
|
||||
this.$root.$emit('bv::show::modal', 'inbox-modal');
|
||||
},
|
||||
showProfile (startingPage) {
|
||||
this.$root.$emit('habitica:show-profile', {
|
||||
user: this.user,
|
||||
startingPage,
|
||||
});
|
||||
this.$router.push({name: startingPage});
|
||||
},
|
||||
showBuyGemsModal (startingPage) {
|
||||
this.$store.state.gemModalOptions.startingPage = startingPage;
|
||||
|
||||
Reference in New Issue
Block a user