summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2019-02-28 14:07:03 +0900
committersyuilo <syuilotan@yahoo.co.jp>2019-02-28 14:07:03 +0900
commit88515ce67701f492c243b012acaad150ec2ec6d0 (patch)
tree4e2987f47ed65d9a91e40ce611821d0df289aacc /src
parentImprove usability (diff)
downloadsharkey-88515ce67701f492c243b012acaad150ec2ec6d0.tar.gz
sharkey-88515ce67701f492c243b012acaad150ec2ec6d0.tar.bz2
sharkey-88515ce67701f492c243b012acaad150ec2ec6d0.zip
Use internal dialog
Diffstat (limited to 'src')
-rw-r--r--src/client/app/common/views/widgets/rss.vue12
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();
- }
+ });
}
}
});