From ba08d1aa53be1060088e93abcd9b8f3786f50287 Mon Sep 17 00:00:00 2001 From: Aya Morisawa Date: Tue, 14 Aug 2018 01:48:11 +0900 Subject: [PATCH] wip --- .../views/pages/admin/admin.suspend-user.vue | 40 +++++++++---------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/src/client/app/desktop/views/pages/admin/admin.suspend-user.vue b/src/client/app/desktop/views/pages/admin/admin.suspend-user.vue index d47a4795ee..01d0301eb1 100644 --- a/src/client/app/desktop/views/pages/admin/admin.suspend-user.vue +++ b/src/client/app/desktop/views/pages/admin/admin.suspend-user.vue @@ -11,29 +11,29 @@ import Vue from "vue"; import parseAcct from "../../../../../../misc/acct/parse"; export default Vue.extend({ - data() { - return { - username: null, - suspending: false - }; - }, - methods: { - async suspendUser() { - this.suspending = true; + data() { + return { + username: null, + suspending: false + }; + }, + methods: { + async suspendUser() { + this.suspending = true; - const user = await (this as any).os.api( - "users/show", - parseAcct(this.username) - ); + const user = await (this as any).os.api( + "users/show", + parseAcct(this.username) + ); - await (this as any).os.api("admin/suspend-user", { - userId: user.id - }); + await (this as any).os.api("admin/suspend-user", { + userId: user.id + }); - this.suspending = false; + this.suspending = false; - (this as any).os.apis.dialog("%i18n:@suspended%"); - } - } + (this as any).os.apis.dialog({ text: "%i18n:@suspended%" }); + } + } });