1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-12-01 00:08:24 +09:00

デッキでフォロー申請を見れるように

This commit is contained in:
syuilo 2019-05-22 12:54:28 +09:00
parent aa1d2545b3
commit c1524d9bef
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69
3 changed files with 9 additions and 0 deletions

View File

@ -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 => {

View File

@ -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 },

View File

@ -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 },