mirror of
https://github.com/PhotonVision/photonvision
synced 2026-07-03 03:01:40 +00:00
added ui save message on settings save
This commit is contained in:
@@ -24,7 +24,14 @@
|
||||
},
|
||||
methods: {
|
||||
sendCameraSettings() {
|
||||
this.handleInput('cameraSettings', this.cameraSettings);
|
||||
const self = this;
|
||||
this.axios.post("http://" + this.$address + "/api/settings/camera", this.cameraSettings).then(
|
||||
function (response) {
|
||||
if (response.status === 200){
|
||||
self.$store.state.saveBar = true;
|
||||
}
|
||||
}
|
||||
)
|
||||
},
|
||||
|
||||
},
|
||||
|
||||
@@ -29,10 +29,12 @@
|
||||
},
|
||||
methods: {
|
||||
sendGeneralSettings() {
|
||||
// this.handleInput('generalSettings', this.settings);
|
||||
const self = this;
|
||||
this.axios.post("http://" + this.$address + "/api/settings/general", this.settings).then(
|
||||
function (response) {
|
||||
console.log(response);
|
||||
if (response.status === 200){
|
||||
self.$store.state.saveBar = true;
|
||||
}
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user