Fix(client): fix profile tab link (#8536)
This commit is contained in:
parent
7e28c396b9
commit
3f9a914718
|
@ -141,6 +141,7 @@ import number from '@/filters/number';
|
||||||
import { userPage, acct as getAcct } from '@/filters/user';
|
import { userPage, acct as getAcct } from '@/filters/user';
|
||||||
import * as os from '@/os';
|
import * as os from '@/os';
|
||||||
import * as symbols from '@/symbols';
|
import * as symbols from '@/symbols';
|
||||||
|
import { MisskeyNavigator } from '@/scripts/navigate';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
components: {
|
components: {
|
||||||
|
@ -190,33 +191,34 @@ export default defineComponent({
|
||||||
active: this.page === 'index',
|
active: this.page === 'index',
|
||||||
title: this.$ts.overview,
|
title: this.$ts.overview,
|
||||||
icon: 'fas fa-home',
|
icon: 'fas fa-home',
|
||||||
onClick: () => { this.$router.push('/@' + getAcct(this.user)); },
|
onClick: () => { this.mkNav.push('/@' + getAcct(this.user)); },
|
||||||
}, ...(this.$i && (this.$i.id === this.user.id)) || this.user.publicReactions ? [{
|
}, ...(this.$i && (this.$i.id === this.user.id)) || this.user.publicReactions ? [{
|
||||||
active: this.page === 'reactions',
|
active: this.page === 'reactions',
|
||||||
title: this.$ts.reaction,
|
title: this.$ts.reaction,
|
||||||
icon: 'fas fa-laugh',
|
icon: 'fas fa-laugh',
|
||||||
onClick: () => { this.$router.push('/@' + getAcct(this.user) + '/reactions'); },
|
onClick: () => { this.mkNav.push('/@' + getAcct(this.user) + '/reactions'); },
|
||||||
}] : [], {
|
}] : [], {
|
||||||
active: this.page === 'clips',
|
active: this.page === 'clips',
|
||||||
title: this.$ts.clips,
|
title: this.$ts.clips,
|
||||||
icon: 'fas fa-paperclip',
|
icon: 'fas fa-paperclip',
|
||||||
onClick: () => { this.$router.push('/@' + getAcct(this.user) + '/clips'); },
|
onClick: () => { this.mkNav.push('/@' + getAcct(this.user) + '/clips'); },
|
||||||
}, {
|
}, {
|
||||||
active: this.page === 'pages',
|
active: this.page === 'pages',
|
||||||
title: this.$ts.pages,
|
title: this.$ts.pages,
|
||||||
icon: 'fas fa-file-alt',
|
icon: 'fas fa-file-alt',
|
||||||
onClick: () => { this.$router.push('/@' + getAcct(this.user) + '/pages'); },
|
onClick: () => { this.mkNav.push('/@' + getAcct(this.user) + '/pages'); },
|
||||||
}, {
|
}, {
|
||||||
active: this.page === 'gallery',
|
active: this.page === 'gallery',
|
||||||
title: this.$ts.gallery,
|
title: this.$ts.gallery,
|
||||||
icon: 'fas fa-icons',
|
icon: 'fas fa-icons',
|
||||||
onClick: () => { this.$router.push('/@' + getAcct(this.user) + '/gallery'); },
|
onClick: () => { this.mkNav.push('/@' + getAcct(this.user) + '/gallery'); },
|
||||||
}],
|
}],
|
||||||
} : null),
|
} : null),
|
||||||
user: null,
|
user: null,
|
||||||
error: null,
|
error: null,
|
||||||
parallaxAnimationId: null,
|
parallaxAnimationId: null,
|
||||||
narrow: null,
|
narrow: null,
|
||||||
|
mkNav: new MisskeyNavigator(),
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue