2018-03-14 00:14:57 +00:00
|
|
|
<DynamicPageBanner title="Muted users" icon="#fa-volume-off" />
|
2018-04-28 21:19:39 +00:00
|
|
|
<AccountsListPage :accountsFetcher :accountActions />
|
2018-03-14 00:14:57 +00:00
|
|
|
<script>
|
|
|
|
import AccountsListPage from '.././_components/AccountsListPage.html'
|
|
|
|
import { store } from '.././_store/store'
|
|
|
|
import { getMutedAccounts } from '.././_api/blockedAndMuted'
|
|
|
|
import DynamicPageBanner from '.././_components/DynamicPageBanner.html'
|
2018-04-28 21:19:39 +00:00
|
|
|
import { setAccountMuted } from '../_actions/mute'
|
2018-03-14 00:14:57 +00:00
|
|
|
|
|
|
|
export default {
|
2018-04-28 21:19:39 +00:00
|
|
|
data: () => ({
|
|
|
|
accountActions: [
|
|
|
|
{
|
|
|
|
icon: '#fa-volume-up',
|
|
|
|
label: 'Unmute',
|
|
|
|
onclick: (accountId) => setAccountMuted(accountId, false, true)
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}),
|
2018-03-14 00:14:57 +00:00
|
|
|
computed: {
|
2018-04-22 18:20:05 +00:00
|
|
|
accountsFetcher: ($currentInstance, $accessToken) => () => getMutedAccounts($currentInstance, $accessToken)
|
2018-03-14 00:14:57 +00:00
|
|
|
},
|
|
|
|
store: () => store,
|
|
|
|
components: {
|
|
|
|
AccountsListPage,
|
|
|
|
DynamicPageBanner
|
|
|
|
}
|
|
|
|
}
|
2018-04-22 18:20:05 +00:00
|
|
|
</script>
|