From 50bd1d9a5d92904873fc8064d8d6d5399922aa27 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 21 Jun 2018 01:58:47 +0900 Subject: 更新ダイアログをHTMLで描画 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/client/app/common/scripts/check-for-update.ts | 9 +- src/client/app/desktop/views/pages/user/user.vue | 4 +- src/client/app/mobile/api/dialog.ts | 19 ++- src/client/app/mobile/script.ts | 2 +- src/client/app/mobile/views/components/dialog.vue | 171 ++++++++++++++++++++++ 5 files changed, 198 insertions(+), 7 deletions(-) create mode 100644 src/client/app/mobile/views/components/dialog.vue (limited to 'src/client') diff --git a/src/client/app/common/scripts/check-for-update.ts b/src/client/app/common/scripts/check-for-update.ts index b5ba6916d1..e2d5b7923b 100644 --- a/src/client/app/common/scripts/check-for-update.ts +++ b/src/client/app/common/scripts/check-for-update.ts @@ -23,11 +23,18 @@ export default async function(mios: MiOS, force = false, silent = false) { } if (!silent) { - alert('%i18n:common.update-available%'.replace('{newer}', newer).replace('{current}', current)); + mios.apis.dialog({ + title: '%i18n:common.update-available-title%', + text: '%i18n:common.update-available%'.replace('{newer}', newer).replace('{current}', current) + }); } return newer; } else { + mios.apis.dialog({ + title: '%i18n:common.update-available-title%', + text: 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' + }); return null; } } diff --git a/src/client/app/desktop/views/pages/user/user.vue b/src/client/app/desktop/views/pages/user/user.vue index 0e0d4f5768..7f05c695af 100644 --- a/src/client/app/desktop/views/pages/user/user.vue +++ b/src/client/app/desktop/views/pages/user/user.vue @@ -1,8 +1,8 @@