diff --git a/src/components/panels/HistoryListPanel.vue b/src/components/panels/HistoryListPanel.vue index 70a3ddde..97eb81ed 100644 --- a/src/components/panels/HistoryListPanel.vue +++ b/src/components/panels/HistoryListPanel.vue @@ -248,26 +248,6 @@ import VueLoadImage from 'vue-load-image' sortDesc: true, selected: [], hideHeaderColums: [], - headers: [ - { text: '', value: '', align: 'left', configable: false, visible: true, filterable: false }, - { text: this.$t("History.Filename"), value: 'filename', align: 'left', configable: false, visible: true }, - { text: '', value: 'status', align: 'left', configable: false, visible: true, filterable: false }, - { text: this.$t("History.Filesize"), value: 'size', align: 'left', configable: true, visible: true }, - { text: this.$t("History.LastModified"), value: 'modified', align: 'left', configable: true, visible: true }, - { text: this.$t("History.StartTime"), value: 'start_time', align: 'left', configable: true, visible: true }, - { text: this.$t("History.EndTime"), value: 'end_time', align: 'left', configable: true, visible: true }, - { text: this.$t("History.EstimatedTime"), value: 'estimated_time', align: 'left', configable: true, visible: true }, - { text: this.$t("History.PrintTime"), value: 'print_duration', align: 'left', configable: true, visible: true }, - { text: this.$t("History.TotalTime"), value: 'total_duration', align: 'left', configable: true, visible: true }, - { text: this.$t("History.FilamentCalc"), value: 'filament_total', align: 'left', configable: true, visible: true }, - { text: this.$t("History.FilamentUsed"), value: 'filament_used', align: 'left', configable: true, visible: true }, - { text: this.$t("History.FirstLayerExtTemp"), value: 'first_layer_extr_temp', align: 'left', configable: true, visible: true }, - { text: this.$t("History.FirstLayerBedTemp"), value: 'first_layer_bed_temp', align: 'left', configable: true, visible: true }, - { text: this.$t("History.FirstLayerHeight"), value: 'first_layer_height', align: 'left', configable: true, visible: true }, - { text: this.$t("History.LayerHeight"), value: 'layer_height', align: 'left', configable: true, visible: true }, - { text: this.$t("History.ObjectHeight"), value: 'object_height', align: 'left', configable: true, visible: true }, - { text: this.$t("History.Slicer"), value: 'slicer', align: 'left', configable: true, visible: true }, - ], options: { }, @@ -293,6 +273,28 @@ import VueLoadImage from 'vue-load-image' getStatusIcon: "server/history/getPrintStatusChipIcon", getStatusColor: "server/history/getPrintStatusChipColor", }), + headers() { + return [ + { text: '', value: '', align: 'left', configable: false, visible: true, filterable: false }, + { text: this.$t("History.Filename"), value: 'filename', align: 'left', configable: false, visible: true }, + { text: '', value: 'status', align: 'left', configable: false, visible: true, filterable: false }, + { text: this.$t("History.Filesize"), value: 'size', align: 'left', configable: true, visible: true }, + { text: this.$t("History.LastModified"), value: 'modified', align: 'left', configable: true, visible: true }, + { text: this.$t("History.StartTime"), value: 'start_time', align: 'left', configable: true, visible: true }, + { text: this.$t("History.EndTime"), value: 'end_time', align: 'left', configable: true, visible: true }, + { text: this.$t("History.EstimatedTime"), value: 'estimated_time', align: 'left', configable: true, visible: true }, + { text: this.$t("History.PrintTime"), value: 'print_duration', align: 'left', configable: true, visible: true }, + { text: this.$t("History.TotalTime"), value: 'total_duration', align: 'left', configable: true, visible: true }, + { text: this.$t("History.FilamentCalc"), value: 'filament_total', align: 'left', configable: true, visible: true }, + { text: this.$t("History.FilamentUsed"), value: 'filament_used', align: 'left', configable: true, visible: true }, + { text: this.$t("History.FirstLayerExtTemp"), value: 'first_layer_extr_temp', align: 'left', configable: true, visible: true }, + { text: this.$t("History.FirstLayerBedTemp"), value: 'first_layer_bed_temp', align: 'left', configable: true, visible: true }, + { text: this.$t("History.FirstLayerHeight"), value: 'first_layer_height', align: 'left', configable: true, visible: true }, + { text: this.$t("History.LayerHeight"), value: 'layer_height', align: 'left', configable: true, visible: true }, + { text: this.$t("History.ObjectHeight"), value: 'object_height', align: 'left', configable: true, visible: true }, + { text: this.$t("History.Slicer"), value: 'slicer', align: 'left', configable: true, visible: true }, + ] + }, configHeaders() { return this.headers.filter(header => header.configable === true) }, diff --git a/src/components/panels/Settings/ConfigFilesPanel.vue b/src/components/panels/Settings/ConfigFilesPanel.vue index 4d73dcfa..f4b0d47e 100644 --- a/src/components/panels/Settings/ConfigFilesPanel.vue +++ b/src/components/panels/Settings/ConfigFilesPanel.vue @@ -264,12 +264,6 @@ export default { sortBy: 'filename', sortDesc: false, selected: [], - headers: [ - { text: '', value: '', }, - { text: this.$t('Settings.ConfigFilesPanel.Name'), value: 'filename', }, - { text: this.$t('Settings.ConfigFilesPanel.Filesize'), value: 'size', align: 'right', }, - { text: this.$t('Settings.ConfigFilesPanel.LastModified'), value: 'modified', align: 'right', }, - ], options: { }, currentPage: 1, @@ -358,6 +352,14 @@ export default { loadings: state => state.socket.loadings, printer_state: state => state.printer.print_stats.state, }), + headers() { + return [ + { text: '', value: '', }, + { text: this.$t('Settings.ConfigFilesPanel.Name'), value: 'filename', }, + { text: this.$t('Settings.ConfigFilesPanel.Filesize'), value: 'size', align: 'right', }, + { text: this.$t('Settings.ConfigFilesPanel.LastModified'), value: 'modified', align: 'right', }, + ] + }, editorOptions() { return { ...this.editor.options, diff --git a/src/pages/Console.vue b/src/pages/Console.vue index 4390dc1c..864e76c2 100644 --- a/src/pages/Console.vue +++ b/src/pages/Console.vue @@ -114,20 +114,6 @@ return { gcode: "", sortBy: 'date', - headers: [ - { - text: this.$t('Console.Date'), - value: 'date', - width: '15%', - dateType: 'Date', - }, - { - text: this.$t('Console.Event'), - sortable: false, - value: 'message', - width: '85%' - }, - ], options: { }, @@ -146,10 +132,24 @@ ...mapGetters([ ]), - events: { - get() { - return this.$store.getters["server/getFilterdEvents"] - } + headers() { + return [ + { + text: this.$t('Console.Date'), + value: 'date', + width: '15%', + dateType: 'Date', + }, + { + text: this.$t('Console.Event'), + sortable: false, + value: 'message', + width: '85%' + }, + ] + }, + events() { + return this.$store.getters["server/getFilterdEvents"] }, hideWaitTemperatures: { get() { diff --git a/src/pages/Files.vue b/src/pages/Files.vue index 55955a4d..2e0a042c 100644 --- a/src/pages/Files.vue +++ b/src/pages/Files.vue @@ -458,18 +458,6 @@ sourcecode: "", monaco: null }, - 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 }, - ], options: { }, @@ -526,6 +514,20 @@ getStatusIcon: "server/history/getPrintStatusChipIcon", getStatusColor: "server/history/getPrintStatusChipColor", }), + headers() { + return [ + { 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 }, + ] + }, configHeaders() { return this.headers.filter(header => header.configable === true) },