mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-14 21:27:23 +01:00
Update title in beforeDestroy() (#14408)
This commit is contained in:
@@ -863,16 +863,13 @@ export default {
|
||||
this.loadUser();
|
||||
this.oldTitle = this.$store.state.title;
|
||||
this.selectPage(this.startingPage);
|
||||
this.$root.$on('habitica:restoreTitle', () => {
|
||||
if (this.oldTitle) {
|
||||
this.$store.dispatch('common:setTitle', {
|
||||
fullTitle: this.oldTitle,
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
beforeDestroy () {
|
||||
this.$root.$off('habitica:restoreTitle');
|
||||
if (this.oldTitle) {
|
||||
this.$store.dispatch('common:setTitle', {
|
||||
fullTitle: this.oldTitle,
|
||||
});
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
async loadUser () {
|
||||
|
||||
Reference in New Issue
Block a user