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:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user