added ui save message on settings save

This commit is contained in:
ori agranat
2019-11-09 21:26:02 +02:00
parent 1198e2cf99
commit ee618f6d86
4 changed files with 28 additions and 7 deletions

View File

@@ -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;
}
}
)
}