mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-15 05:37:22 +01:00
fix(links): handle ext links in profiles
This commit is contained in:
@@ -759,6 +759,7 @@ import challenge from '@/assets/svg/challenge.svg';
|
|||||||
import member from '@/assets/svg/member-icon.svg';
|
import member from '@/assets/svg/member-icon.svg';
|
||||||
import staff from '@/assets/svg/tier-staff.svg';
|
import staff from '@/assets/svg/tier-staff.svg';
|
||||||
import error404 from '../404';
|
import error404 from '../404';
|
||||||
|
import externalLinks from '../../mixins/externalLinks';
|
||||||
import { userCustomStateMixin } from '../../mixins/userState';
|
import { userCustomStateMixin } from '../../mixins/userState';
|
||||||
// @TODO: EMAILS.COMMUNITY_MANAGER_EMAIL
|
// @TODO: EMAILS.COMMUNITY_MANAGER_EMAIL
|
||||||
const COMMUNITY_MANAGER_EMAIL = 'admin@habitica.com';
|
const COMMUNITY_MANAGER_EMAIL = 'admin@habitica.com';
|
||||||
@@ -772,7 +773,7 @@ export default {
|
|||||||
profileStats,
|
profileStats,
|
||||||
error404,
|
error404,
|
||||||
},
|
},
|
||||||
mixins: [userCustomStateMixin('userLoggedIn')],
|
mixins: [externalLinks, userCustomStateMixin('userLoggedIn')],
|
||||||
props: ['userId', 'startingPage'],
|
props: ['userId', 'startingPage'],
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
@@ -862,8 +863,12 @@ export default {
|
|||||||
mounted () {
|
mounted () {
|
||||||
this.loadUser();
|
this.loadUser();
|
||||||
this.oldTitle = this.$store.state.title;
|
this.oldTitle = this.$store.state.title;
|
||||||
|
this.handleExternalLinks();
|
||||||
this.selectPage(this.startingPage);
|
this.selectPage(this.startingPage);
|
||||||
},
|
},
|
||||||
|
updated () {
|
||||||
|
this.handleExternalLinks();
|
||||||
|
},
|
||||||
beforeDestroy () {
|
beforeDestroy () {
|
||||||
if (this.oldTitle) {
|
if (this.oldTitle) {
|
||||||
this.$store.dispatch('common:setTitle', {
|
this.$store.dispatch('common:setTitle', {
|
||||||
|
|||||||
Reference in New Issue
Block a user