diff --git a/src/locales/en.json b/src/locales/en.json
index 91a4e28e..8dbe8f7b 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -98,6 +98,7 @@
"ObjectHeight": "Object Height",
"LayerHeight": "Layer Height",
"FilamentUsage": "Filament Usage",
+ "FilamentWeight": "Filament Weight",
"PrintTime": "Print Time",
"Slicer": "Slicer"
},
diff --git a/src/pages/Files.vue b/src/pages/Files.vue
index 0e5b47e4..e93016c0 100644
--- a/src/pages/Files.vue
+++ b/src/pages/Files.vue
@@ -198,6 +198,7 @@
{{ item.object_height ? item.object_height.toFixed(2)+' mm' : '--' }} |
{{ item.layer_height ? item.layer_height.toFixed(2)+' mm' : '--' }} |
{{ item.filament_total ? item.filament_total.toFixed()+' mm' : '--' }} |
+ {{ item.filament_weight_total ? item.filament_weight_total.toFixed()+' g' : '--' }} |
{{ formatPrintTime(item.estimated_time) }} |
{{ item.slicer ? item.slicer : '--' }} {{ item.slicer_version}} |
@@ -534,16 +535,17 @@
}),
headers() {
const headers = [
- { text: '', value: '', align: 'left', configable: false, visible: true, filterable: false },
- { text: this.$t('Files.Name'), value: 'filename', align: 'left', configable: false, visible: true },
- { text: '', value: 'status', align: 'left', configable: false, visible: true },
- { text: this.$t('Files.Filesize'), value: 'size', align: 'right', configable: true, visible: true },
- { text: this.$t('Files.LastModified'), value: 'modified', align: 'right', configable: true, visible: true },
- { text: this.$t('Files.ObjectHeight'), value: 'object_height', align: 'right', configable: true, visible: true },
- { text: this.$t('Files.LayerHeight'), value: 'layer_height', align: 'right', configable: true, visible: true },
- { text: this.$t('Files.FilamentUsage'), value: 'filament_total', align: 'right', configable: true, visible: true },
- { text: this.$t('Files.PrintTime'), value: 'estimated_time', align: 'right', configable: true, visible: true },
- { text: this.$t('Files.Slicer'), value: 'slicer', align: 'right', configable: true, visible: true },
+ { text: '', value: '', align: 'left', configable: false, visible: true, filterable: false },
+ { text: this.$t('Files.Name'), value: 'filename', align: 'left', configable: false, visible: true },
+ { text: '', value: 'status', align: 'left', configable: false, visible: true },
+ { text: this.$t('Files.Filesize'), value: 'size', align: 'right', configable: true, visible: true },
+ { text: this.$t('Files.LastModified'), value: 'modified', align: 'right', configable: true, visible: true },
+ { text: this.$t('Files.ObjectHeight'), value: 'object_height', align: 'right', configable: true, visible: true },
+ { text: this.$t('Files.LayerHeight'), value: 'layer_height', align: 'right', configable: true, visible: true },
+ { text: this.$t('Files.FilamentUsage'), value: 'filament_total', align: 'right', configable: true, visible: true },
+ { text: this.$t('Files.FilamentWeight'), value: 'filament_weight_total', align: 'right', configable: true, visible: true },
+ { text: this.$t('Files.PrintTime'), value: 'estimated_time', align: 'right', configable: true, visible: true },
+ { text: this.$t('Files.Slicer'), value: 'slicer', align: 'right', configable: true, visible: true },
]
headers.forEach((header) => {
diff --git a/src/store/files/mutations.js b/src/store/files/mutations.js
index e5daaedd..88e1a302 100644
--- a/src/store/files/mutations.js
+++ b/src/store/files/mutations.js
@@ -87,6 +87,7 @@ export default {
let newData = {
estimated_time: safeDefault(payload.estimated_time),
filament_total: safeDefault(payload.filament_total),
+ filament_weight_total: safeDefault(payload.filament_weight_total),
first_layer_height: safeDefault(payload.first_layer_height),
first_layer_bed_temp: safeDefault(payload.first_layer_bed_temp),
first_layer_extr_temp: safeDefault(payload.first_layer_extr_temp),