modifying state for updating config

This commit is contained in:
sanjayk03-dev
2024-07-09 15:05:45 +05:30
parent f7ed7bba09
commit 4b957548a8
3 changed files with 5 additions and 21 deletions

View File

@@ -775,18 +775,8 @@ module.exports = {
SvelteComponents.showDialog("Message", { title: this[axis].toolmsg });
},
set_position: async function (axis, position) {
set_position: function (axis, position) {
api.put(`position/${axis}`, { position: parseFloat(position) });
// this.update_config();
// if (!this.config.axes) {
// this.config.axes = {};
// }
// this.config.axes[axis] = {
// abs: position + this.state["offset_" + axis],
// off: this.state["offset_" + axis],
// };
// console.log(this.config);
// await this.save_config(this.config);
},
zero_all: function () {