1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-16 21:25:30 +02:00

サイレンス, ブロック, ミュートの確認表示 for v10 (#4744)

* confirm on user menu

* confirm silence

* Resolve #4554
This commit is contained in:
MeiMei
2019-04-18 04:34:47 +09:00
committed by syuilo
parent e62bb7cdaf
commit 45b94086ed
4 changed files with 42 additions and 8 deletions

View File

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