From ea9aeef9d8790db51c59a99927cd47ea9423be88 Mon Sep 17 00:00:00 2001
From: syuilo <Syuilotan@yahoo.co.jp>
Date: Thu, 18 Nov 2021 18:45:58 +0900
Subject: refactor(client): refactor dialog functions to improve type inference

---
 packages/client/src/widgets/aiscript.vue | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

(limited to 'packages/client/src/widgets/aiscript.vue')

diff --git a/packages/client/src/widgets/aiscript.vue b/packages/client/src/widgets/aiscript.vue
index 992ec2f8a1..f2ea5e268a 100644
--- a/packages/client/src/widgets/aiscript.vue
+++ b/packages/client/src/widgets/aiscript.vue
@@ -57,9 +57,8 @@ export default defineComponent({
 			}), {
 				in: (q) => {
 					return new Promise(ok => {
-						os.dialog({
+						os.inputText({
 							title: q,
-							input: {}
 						}).then(({ canceled, result: a }) => {
 							ok(a);
 						});
@@ -88,7 +87,7 @@ export default defineComponent({
 			try {
 				ast = parse(this.props.script);
 			} catch (e) {
-				os.dialog({
+				os.alert({
 					type: 'error',
 					text: 'Syntax error :('
 				});
@@ -97,7 +96,7 @@ export default defineComponent({
 			try {
 				await aiscript.exec(ast);
 			} catch (e) {
-				os.dialog({
+				os.alert({
 					type: 'error',
 					text: e
 				});
-- 
cgit v1.2.3-freya

