Use internal dialog

This commit is contained in:
syuilo 2019-02-28 14:07:03 +09:00
parent 00562e840c
commit 88515ce677
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69

View file

@ -55,12 +55,18 @@ export default define({
}); });
}, },
setting() { setting() {
const url = window.prompt('URL', this.props.url); this.$root.dialog({
if (url && url != '') { title: 'URL',
input: {
type: 'url',
default: this.props.url
}
}).then(({ canceled, result: url }) => {
if (canceled) return;
this.props.url = url; this.props.url = url;
this.save(); this.save();
this.fetch(); this.fetch();
} });
} }
} }
}); });