Bernd Storath
2 years ago
No known key found for this signature in database
GPG Key ID: D6C85685A555540F
2 changed files with
13 additions and
0 deletions
-
src/www/js/api.js
-
src/www/js/app.js
|
|
@ -138,6 +138,14 @@ class API { |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
async updateClientAddress6({ clientId, address6 }) { |
|
|
|
|
|
return this.call({ |
|
|
|
|
|
method: 'put', |
|
|
|
|
|
path: `/wireguard/client/${clientId}/address6/`, |
|
|
|
|
|
body: { address6 }, |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
async restoreConfiguration(file) { |
|
|
async restoreConfiguration(file) { |
|
|
return this.call({ |
|
|
return this.call({ |
|
|
method: 'put', |
|
|
method: 'put', |
|
|
|
|
|
@ -301,6 +301,11 @@ new Vue({ |
|
|
.catch((err) => alert(err.message || err.toString())) |
|
|
.catch((err) => alert(err.message || err.toString())) |
|
|
.finally(() => this.refresh().catch(console.error)); |
|
|
.finally(() => this.refresh().catch(console.error)); |
|
|
}, |
|
|
}, |
|
|
|
|
|
updateClientAddress6(client, address6) { |
|
|
|
|
|
this.api.updateClientAddress6({ clientId: client.id, address6 }) |
|
|
|
|
|
.catch((err) => alert(err.message || err.toString())) |
|
|
|
|
|
.finally(() => this.refresh().catch(console.error)); |
|
|
|
|
|
}, |
|
|
restoreConfig(e) { |
|
|
restoreConfig(e) { |
|
|
e.preventDefault(); |
|
|
e.preventDefault(); |
|
|
const file = e.currentTarget.files.item(0); |
|
|
const file = e.currentTarget.files.item(0); |
|
|
|