This commit is contained in:
taehoon 2019-04-06 14:56:50 -04:00
parent 10ecc2c816
commit a89236f67c
2 changed files with 5 additions and 2 deletions

View File

@ -367,6 +367,9 @@ const UserSettings = {
}, },
unmuteUsers (ids) { unmuteUsers (ids) {
return this.$store.dispatch('unmuteUsers', ids) return this.$store.dispatch('unmuteUsers', ids)
},
identity (value) {
return value
} }
} }
} }

View File

@ -200,7 +200,7 @@
<BlockCard slot-scope="row" :userId="row.item"/> <BlockCard slot-scope="row" :userId="row.item"/>
</Autosuggest> </Autosuggest>
</div> </div>
<BlockList :refresh="true" :getKey="item => item" class="profile-edit-user-list"> <BlockList :refresh="true" :getKey="identity" class="profile-edit-user-list">
<template slot="header" slot-scope="p"> <template slot="header" slot-scope="p">
<div class="profile-edit-bulk-actions"> <div class="profile-edit-bulk-actions">
<ProgressButton class="btn btn-default" v-if="p.selected.length > 0" :click="() => blockUsers(p.selected)"> <ProgressButton class="btn btn-default" v-if="p.selected.length > 0" :click="() => blockUsers(p.selected)">
@ -224,7 +224,7 @@
<MuteCard slot-scope="row" :userId="row.item"/> <MuteCard slot-scope="row" :userId="row.item"/>
</Autosuggest> </Autosuggest>
</div> </div>
<MuteList :refresh="true" :getKey="item => item" class="profile-edit-user-list"> <MuteList :refresh="true" :getKey="identity" class="profile-edit-user-list">
<template slot="header" slot-scope="p"> <template slot="header" slot-scope="p">
<div class="profile-edit-bulk-actions"> <div class="profile-edit-bulk-actions">
<ProgressButton class="btn btn-default" v-if="p.selected.length > 0" :click="() => muteUsers(p.selected)"> <ProgressButton class="btn btn-default" v-if="p.selected.length > 0" :click="() => muteUsers(p.selected)">