diff --git a/src/client/app/common/views/pages/follow-requests.vue b/src/client/app/common/views/pages/follow-requests.vue index 146d4b0c9..e5b6e2902 100644 --- a/src/client/app/common/views/pages/follow-requests.vue +++ b/src/client/app/common/views/pages/follow-requests.vue @@ -22,6 +22,7 @@ import Vue from 'vue'; import i18n from '../../../i18n'; import Progress from '../../scripts/loading'; +import { faUserClock } from '@fortawesome/free-solid-svg-icons'; export default Vue.extend({ i18n: i18n('common/views/pages/follow-requests.vue'), @@ -31,6 +32,12 @@ export default Vue.extend({ requests: [] }; }, + created() { + this.$emit('init', { + title: this.$t('received-follow-requests'), + icon: faUserClock + }); + }, mounted() { Progress.start(); this.$root.api('following/requests/list').then(requests => { diff --git a/src/client/app/desktop/script.ts b/src/client/app/desktop/script.ts index 845f8ee5c..b283ab207 100644 --- a/src/client/app/desktop/script.ts +++ b/src/client/app/desktop/script.ts @@ -146,6 +146,7 @@ init(async (launch, os) => { { path: '/i/lists/:listId', component: DeckColumn, props: route => ({ component: () => import('../common/views/pages/user-list-editor.vue').then(m => m.default), listId: route.params.listId }) }, { path: '/i/groups', component: DeckColumn, props: route => ({ component: () => import('../common/views/pages/user-groups.vue').then(m => m.default) }) }, { path: '/i/groups/:groupId', component: DeckColumn, props: route => ({ component: () => import('../common/views/pages/user-group-editor.vue').then(m => m.default), groupId: route.params.groupId }) }, + { path: '/i/follow-requests', component: DeckColumn, props: route => ({ component: () => import('../common/views/pages/follow-requests.vue').then(m => m.default) }) }, ]} : { path: '/', component: MkHome, children: [ { path: '', name: 'index', component: MkHomeTimeline }, diff --git a/src/client/app/mobile/script.ts b/src/client/app/mobile/script.ts index 7a80f2175..106e843ca 100644 --- a/src/client/app/mobile/script.ts +++ b/src/client/app/mobile/script.ts @@ -128,6 +128,7 @@ init((launch, os) => { { path: '/i/lists/:listId', component: DeckColumn, props: route => ({ component: () => import('../common/views/pages/user-list-editor.vue').then(m => m.default), listId: route.params.listId }) }, { path: '/i/groups', component: DeckColumn, props: route => ({ component: () => import('../common/views/pages/user-groups.vue').then(m => m.default) }) }, { path: '/i/groups/:groupId', component: DeckColumn, props: route => ({ component: () => import('../common/views/pages/user-group-editor.vue').then(m => m.default), groupId: route.params.groupId }) }, + { path: '/i/follow-requests', component: DeckColumn, props: route => ({ component: () => import('../common/views/pages/follow-requests.vue').then(m => m.default) }) }, ]}] : [ { path: '/', name: 'index', component: MkIndex },