From 5f50f6df73f630e4dc3d68121b305f65137220fd Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 28 Feb 2019 14:07:03 +0900 Subject: [PATCH] Use internal dialog --- src/client/app/common/views/widgets/rss.vue | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/client/app/common/views/widgets/rss.vue b/src/client/app/common/views/widgets/rss.vue index a356899a1..e97919767 100644 --- a/src/client/app/common/views/widgets/rss.vue +++ b/src/client/app/common/views/widgets/rss.vue @@ -55,12 +55,18 @@ export default define({ }); }, setting() { - const url = window.prompt('URL', this.props.url); - if (url && url != '') { + this.$root.dialog({ + title: 'URL', + input: { + type: 'url', + default: this.props.url + } + }).then(({ canceled, result: url }) => { + if (canceled) return; this.props.url = url; this.save(); this.fetch(); - } + }); } } });