mirror of
https://github.com/w0rng/amnezia-wg-easy.git
synced 2025-04-26 13:20:11 +03:00
fix: reload configuration
* run linter * screenshot update
This commit is contained in:
parent
03b7d8e537
commit
e3ee09b755
5 changed files with 13 additions and 14 deletions
|
@ -303,12 +303,9 @@ new Vue({
|
|||
e.preventDefault();
|
||||
const file = e.currentTarget.files.item(0);
|
||||
file.text()
|
||||
.then(content => {
|
||||
.then((content) => {
|
||||
this.api.uploadConfiguration(content)
|
||||
.then((_result) => {
|
||||
alert("The configuration was updated.");
|
||||
document.location.reload();
|
||||
})
|
||||
.then((_result) => alert('The configuration was updated.'))
|
||||
.catch((err) => alert(err.message || err.toString()))
|
||||
.finally(() => this.refresh().catch(console.error));
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue