mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2025-09-06 11:41:16 +00:00
Still working on translating....
This commit is contained in:
@@ -62,7 +62,7 @@ export default {
|
||||
fetchPost("/api/addPeers/" + this.$route.params.id, this.data, (res) => {
|
||||
if (res.status){
|
||||
this.$router.push(`/configuration/${this.$route.params.id}/peers`)
|
||||
this.dashboardStore.newMessage("Server", "Peer create successfully", "success")
|
||||
this.dashboardStore.newMessage("Server", "Peer created successfully", "success")
|
||||
}else{
|
||||
this.dashboardStore.newMessage("Server", res.message, "danger")
|
||||
}
|
||||
|
@@ -33,7 +33,7 @@ export default {
|
||||
fetchPost(`/api/updatePeerSettings/${this.$route.params.id}`, this.data, (res) => {
|
||||
this.saving = false;
|
||||
if (res.status){
|
||||
this.dashboardConfigurationStore.newMessage("Server", "Peer Updated!", "success")
|
||||
this.dashboardConfigurationStore.newMessage("Server", "Peer saved", "success")
|
||||
}else{
|
||||
this.dashboardConfigurationStore.newMessage("Server", res.message, "danger")
|
||||
}
|
||||
|
Reference in New Issue
Block a user