From dfd991a6c6d2c702718e22c707c2f6ccd1cff77e Mon Sep 17 00:00:00 2001
From: syuilo <Syuilotan@yahoo.co.jp>
Date: Thu, 4 Jul 2019 21:08:47 +0900
Subject: テストメールは管理者アドレスに送信するように
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/client/app/admin/views/instance.vue | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

(limited to 'src/client/app/admin/views/instance.vue')

diff --git a/src/client/app/admin/views/instance.vue b/src/client/app/admin/views/instance.vue
index 7d271bcb89..2d0fc9b40c 100644
--- a/src/client/app/admin/views/instance.vue
+++ b/src/client/app/admin/views/instance.vue
@@ -426,16 +426,8 @@ export default Vue.extend({
 		},
 
 		async testEmail() {
-			const { canceled, result: to } = await this.$root.dialog({
-				title: this.$t('test-email-to'),
-				input: {
-					type: 'email',
-				},
-				showCancelButton: true
-			});
-			if (canceled) return;
 			this.$root.api('admin/send-email', {
-				to: to,
+				to: this.maintainerEmail,
 				subject: 'Test email',
 				text: 'Yo'
 			}).then(x => {
-- 
cgit v1.2.3-freya

