diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-02-28 14:07:03 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-02-28 14:07:03 +0900 |
| commit | 88515ce67701f492c243b012acaad150ec2ec6d0 (patch) | |
| tree | 4e2987f47ed65d9a91e40ce611821d0df289aacc /src/client | |
| parent | Improve usability (diff) | |
| download | sharkey-88515ce67701f492c243b012acaad150ec2ec6d0.tar.gz sharkey-88515ce67701f492c243b012acaad150ec2ec6d0.tar.bz2 sharkey-88515ce67701f492c243b012acaad150ec2ec6d0.zip | |
Use internal dialog
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/app/common/views/widgets/rss.vue | 12 |
1 files 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 a356899a14..e979197670 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(); - } + }); } } }); |