From e1839afcf5af0821730d2689efd6d08dbf290e86 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 4 Nov 2018 18:35:55 +0900 Subject: [PATCH] [Client] Fix bug --- src/client/app/admin/views/users.vue | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/client/app/admin/views/users.vue b/src/client/app/admin/views/users.vue index 7b2091f19..ed9f372f0 100644 --- a/src/client/app/admin/views/users.vue +++ b/src/client/app/admin/views/users.vue @@ -67,11 +67,11 @@ export default Vue.extend({ const process = async () => { const user = await (this as any).os.api('users/show', parseAcct(this.verifyUsername)); await (this as any).os.api('admin/verify-user', { userId: user.id }); - (this as any).os.apis.dialog({ text: '%i18n:@verified%' }); + //(this as any).os.apis.dialog({ text: '%i18n:@verified%' }); }; await process().catch(e => { - (this as any).os.apis.dialog({ text: `Failed: ${e}` }); + //(this as any).os.apis.dialog({ text: `Failed: ${e}` }); }); this.verifying = false; @@ -83,11 +83,11 @@ export default Vue.extend({ const process = async () => { const user = await (this as any).os.api('users/show', parseAcct(this.unverifyUsername)); await (this as any).os.api('admin/unverify-user', { userId: user.id }); - (this as any).os.apis.dialog({ text: '%i18n:@unverified%' }); + //(this as any).os.apis.dialog({ text: '%i18n:@unverified%' }); }; await process().catch(e => { - (this as any).os.apis.dialog({ text: `Failed: ${e}` }); + //(this as any).os.apis.dialog({ text: `Failed: ${e}` }); }); this.unverifying = false; @@ -99,11 +99,11 @@ export default Vue.extend({ const process = async () => { const user = await (this as any).os.api('users/show', parseAcct(this.suspendUsername)); await (this as any).os.api('admin/suspend-user', { userId: user.id }); - (this as any).os.apis.dialog({ text: '%i18n:@suspended%' }); + //(this as any).os.apis.dialog({ text: '%i18n:@suspended%' }); }; await process().catch(e => { - (this as any).os.apis.dialog({ text: `Failed: ${e}` }); + //(this as any).os.apis.dialog({ text: `Failed: ${e}` }); }); this.suspending = false; @@ -115,11 +115,11 @@ export default Vue.extend({ const process = async () => { const user = await (this as any).os.api('users/show', parseAcct(this.unsuspendUsername)); await (this as any).os.api('admin/unsuspend-user', { userId: user.id }); - (this as any).os.apis.dialog({ text: '%i18n:@unsuspended%' }); + //(this as any).os.apis.dialog({ text: '%i18n:@unsuspended%' }); }; await process().catch(e => { - (this as any).os.apis.dialog({ text: `Failed: ${e}` }); + //(this as any).os.apis.dialog({ text: `Failed: ${e}` }); }); this.unsuspending = false;