bugfix: save only hex values of chart colors

Signed-off-by: Stefan Dej <meteyou@gmail.com>
This commit is contained in:
Stefan Dej committed 2021-02-07 21:50:02 +01:00
1 parent 91014a7349
commit f634872297
2 files changed
+5 -2

No files matched your search

+4 -1
View File
@@ -361,7 +361,10 @@
}
},
setChartColor(value) {
if ("name" in this.editHeater.object) {
if (
"name" in this.editHeater.object &&
typeof value === "string"
) {
this.$store.commit('printer/tempHistory/setColor', { name: this.editHeater.object.name, value: value })
this.$store.dispatch('gui/setTempchartDatasetSetting', { name: this.editHeater.object.name, type: 'color', value: value })
}
+1 -1
View File
@@ -21,7 +21,7 @@ export default {
},
upload({ state, rootState }) {
let file = new File([JSON.stringify({ state })], '.mainsail.json');
let file = new File([JSON.stringify({ state })], '.mainsail.json')
window.console.log("upload .mainsail.json")
window.console.log(state)