mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-21 19:24:15 +00:00
fix(links): handle ext links in profiles
This commit is contained in:
parent
2322f7e342
commit
7363f08a86
1 changed files with 6 additions and 1 deletions
|
|
@ -759,6 +759,7 @@ import challenge from '@/assets/svg/challenge.svg';
|
|||
import member from '@/assets/svg/member-icon.svg';
|
||||
import staff from '@/assets/svg/tier-staff.svg';
|
||||
import error404 from '../404';
|
||||
import externalLinks from '../../mixins/externalLinks';
|
||||
import { userCustomStateMixin } from '../../mixins/userState';
|
||||
// @TODO: EMAILS.COMMUNITY_MANAGER_EMAIL
|
||||
const COMMUNITY_MANAGER_EMAIL = 'admin@habitica.com';
|
||||
|
|
@ -772,7 +773,7 @@ export default {
|
|||
profileStats,
|
||||
error404,
|
||||
},
|
||||
mixins: [userCustomStateMixin('userLoggedIn')],
|
||||
mixins: [externalLinks, userCustomStateMixin('userLoggedIn')],
|
||||
props: ['userId', 'startingPage'],
|
||||
data () {
|
||||
return {
|
||||
|
|
@ -862,8 +863,12 @@ export default {
|
|||
mounted () {
|
||||
this.loadUser();
|
||||
this.oldTitle = this.$store.state.title;
|
||||
this.handleExternalLinks();
|
||||
this.selectPage(this.startingPage);
|
||||
},
|
||||
updated () {
|
||||
this.handleExternalLinks();
|
||||
},
|
||||
beforeDestroy () {
|
||||
if (this.oldTitle) {
|
||||
this.$store.dispatch('common:setTitle', {
|
||||
|
|
|
|||
Loading…
Reference in a new issue