bugfix: save only hex values of chart colors
Signed-off-by: Stefan Dej <meteyou@gmail.com>
This commit is contained in:
1 parent
91014a7349
commit
f634872297
2 files changed
+5
-2
No files matched your search
@@ -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 })
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user