サイレンス, ブロック, ミュートの確認表示 for v10 (#4744)
* confirm on user menu * confirm silence * Resolve #4554
This commit is contained in:
parent
e62bb7cdaf
commit
45b94086ed
4 changed files with 42 additions and 8 deletions
|
|
@ -232,6 +232,8 @@ export default Vue.extend({
|
|||
},
|
||||
|
||||
async silenceUser() {
|
||||
if (!await this.getConfirmed(this.$t('silence-confirm'))) return;
|
||||
|
||||
const process = async () => {
|
||||
await this.$root.api('admin/silence-user', { userId: this.user._id });
|
||||
this.$root.dialog({
|
||||
|
|
@ -251,6 +253,8 @@ export default Vue.extend({
|
|||
},
|
||||
|
||||
async unsilenceUser() {
|
||||
if (!await this.getConfirmed(this.$t('unsilence-confirm'))) return;
|
||||
|
||||
const process = async () => {
|
||||
await this.$root.api('admin/unsilence-user', { userId: this.user._id });
|
||||
this.$root.dialog({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue