can show list of follow requests

This commit is contained in:
Nolan Lawson 2018-03-16 09:18:40 -07:00
parent 67e2e781f4
commit 4e47f3048b
2 changed files with 41 additions and 0 deletions

View File

@ -0,0 +1,20 @@
<DynamicPageBanner title="Follow requests" icon="#fa-user-plus" />
<AccountsListPage :accountsFetcher />
<script>
import AccountsListPage from '.././_components/AccountsListPage.html'
import { store } from '.././_store/store'
import { getFollowRequests } from '../_actions/followRequests'
import DynamicPageBanner from '.././_components/DynamicPageBanner.html'
export default {
computed: {
statusId: params => params.statusId,
accountsFetcher: ($currentInstance, $accessToken, statusId) => () => getFollowRequests($currentInstance, $accessToken, statusId)
},
store: () => store,
components: {
AccountsListPage,
DynamicPageBanner
}
}
</script>

21
routes/requests.html Normal file
View File

@ -0,0 +1,21 @@
<:Head>
<title>Pinafore Follow requests</title>
</:Head>
<Layout page='muted'>
<LazyPage :pageComponent :params />
</Layout>
<script>
import Layout from './_components/Layout.html'
import LazyPage from './_components/LazyPage.html'
import pageComponent from './_pages/requests.html'
export default {
components: {
Layout,
LazyPage
},
data: () => ({
pageComponent
})
}
</script>