mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-27 11:33:08 +02:00
Use internal dialog
This commit is contained in:
parent
00562e840c
commit
88515ce677
1 changed files with 9 additions and 3 deletions
|
@ -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();
|
||||||
}
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue