From 24dadf8530bda08ec88aa5624a816bd439a004c1 Mon Sep 17 00:00:00 2001 From: Pedro Lamas Date: Sun, 20 Oct 2024 20:24:44 +0100 Subject: [PATCH] feat: adds status column to job files list (#1512) Signed-off-by: Pedro Lamas --- .../widgets/filesystem/FileSystem.vue | 1 + .../widgets/filesystem/FileSystemBrowser.vue | 355 +++++++++--------- .../widgets/history/JobHistoryItemStatus.vue | 47 +-- src/store/config/state.ts | 1 + src/store/files/types.metadata.ts | 3 + src/store/files/types.ts | 2 + 6 files changed, 201 insertions(+), 208 deletions(-) diff --git a/src/components/widgets/filesystem/FileSystem.vue b/src/components/widgets/filesystem/FileSystem.vue index ee16b438fb..67cc461755 100644 --- a/src/components/widgets/filesystem/FileSystem.vue +++ b/src/components/widgets/filesystem/FileSystem.vue @@ -319,6 +319,7 @@ export default class FileSystem extends Mixins(StateMixin, FilesMixin, ServicesM if (this.currentRoot === 'gcodes') { headers = [ ...headers, + { text: this.$t('app.general.table.header.status'), value: 'history.status', configurable: true }, { text: this.$t('app.general.table.header.height'), value: 'object_height', configurable: true }, { text: this.$t('app.general.table.header.first_layer_height'), value: 'first_layer_height', configurable: true }, { text: this.$t('app.general.table.header.layer_height'), value: 'layer_height', configurable: true }, diff --git a/src/components/widgets/filesystem/FileSystemBrowser.vue b/src/components/widgets/filesystem/FileSystemBrowser.vue index c9770b6004..8de9f1bc94 100644 --- a/src/components/widgets/filesystem/FileSystemBrowser.vue +++ b/src/components/widgets/filesystem/FileSystemBrowser.vue @@ -80,185 +80,178 @@ {{ item.name }} - - - {{ $filters.getReadableLengthString(item.object_height) }} - - - - - - {{ item.first_layer_height }} mm - - - - - - {{ item.layer_height }} mm - - - - - - {{ item.filament_name }} - - - - - - {{ item.filament_type }} - - - - - - {{ $filters.getReadableLengthString(item.filament_total) }} - - - - - - {{ $filters.getReadableWeightString(item.filament_weight_total) }} - - - - - - {{ $filters.getReadableLengthString(item.history.filament_used) }} - - - - - - {{ item.nozzle_diameter }} mm - - - - - - {{ item.slicer }} - - - - - - {{ item.slicer_version }} - - - - - - {{ $filters.formatCounterSeconds(item.estimated_time) }} - - - - - - {{ $filters.formatCounterSeconds(item.history.print_duration) }} - - - - - - {{ $filters.formatCounterSeconds(item.history.total_duration) }} - - - - - - {{ item.first_layer_bed_temp }}°C - - - - - - {{ item.first_layer_extr_temp }}°C - - - - - - {{ item.chamber_temp }}°C - - - - - - {{ $filters.formatDateTime(item.print_start_time * 1000) }} - - + - - - - {{ job.status }} - - + + + {{ job.status }} +