From c1524d9beffe3daaa64c515a6a63ced5e34a3e9e Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 22 May 2019 12:54:28 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=87=E3=83=83=E3=82=AD=E3=81=A7=E3=83=95?= =?UTF-8?q?=E3=82=A9=E3=83=AD=E3=83=BC=E7=94=B3=E8=AB=8B=E3=82=92=E8=A6=8B?= =?UTF-8?q?=E3=82=8C=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/client/app/common/views/pages/follow-requests.vue | 7 +++++++ src/client/app/desktop/script.ts | 1 + src/client/app/mobile/script.ts | 1 + 3 files changed, 9 insertions(+) diff --git a/src/client/app/common/views/pages/follow-requests.vue b/src/client/app/common/views/pages/follow-requests.vue index 146d4b0c94..e5b6e2902d 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 845f8ee5c0..b283ab2075 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 7a80f21759..106e843ca8 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 },