summaryrefslogtreecommitdiff
path: root/src/client/app
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2019-05-22 12:54:28 +0900
committersyuilo <syuilotan@yahoo.co.jp>2019-05-22 12:54:28 +0900
commitc1524d9beffe3daaa64c515a6a63ced5e34a3e9e (patch)
tree17f74cc14a639b9c9c406dab8825b78dc6dece55 /src/client/app
parentFetch joined groups on accept group invites (#4956) (diff)
downloadsharkey-c1524d9beffe3daaa64c515a6a63ced5e34a3e9e.tar.gz
sharkey-c1524d9beffe3daaa64c515a6a63ced5e34a3e9e.tar.bz2
sharkey-c1524d9beffe3daaa64c515a6a63ced5e34a3e9e.zip
デッキでフォロー申請を見れるように
Diffstat (limited to 'src/client/app')
-rw-r--r--src/client/app/common/views/pages/follow-requests.vue7
-rw-r--r--src/client/app/desktop/script.ts1
-rw-r--r--src/client/app/mobile/script.ts1
3 files changed, 9 insertions, 0 deletions
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 },