Skip to content

Commit

Permalink
fix(history): add missing fields in detail dialog (#1940)
Browse files Browse the repository at this point in the history
  • Loading branch information
meteyou authored Jul 14, 2024
1 parent 46e79c0 commit 7a877b2
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 0 deletions.
45 changes: 45 additions & 0 deletions src/components/dialogs/HistoryListPanelDetailsDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,51 @@ export default class HistoryListPanelDetailsDialog extends Mixins(BaseMixin) {
value: `${Math.round((this.job.metadata?.filament_weight_total ?? 0) * 100) / 100} g`,
exists: this.job.metadata && 'filament_weight_total' in this.job.metadata,
},
{
name: this.$t('History.EstimatedFilament').toString(),
value: `${Math.round(this.job.metadata?.filament_total ?? 0)} mm`,
exists: this.job.metadata && 'filament_total' in this.job.metadata,
},
{
name: this.$t('History.FilamentUsed').toString(),
value: `${Math.round(this.job.metadata?.filament_used ?? 0)} mm`,
exists: this.job.metadata && 'filament_used' in this.job.metadata,
},
{
name: this.$t('History.FirstLayerExtTemp').toString(),
value: `${this.job.metadata?.first_layer_extr_temp ?? 0} °C`,
exists: this.job.metadata && 'first_layer_extr_temp' in this.job.metadata,
},
{
name: this.$t('History.FirstLayerBedTemp').toString(),
value: `${this.job.metadata?.first_layer_bed_temp ?? 0} °C`,
exists: this.job.metadata && 'first_layer_bed_temp' in this.job.metadata,
},
{
name: this.$t('History.FirstLayerHeight').toString(),
value: `${this.job.metadata?.first_layer_height ?? 0} mm`,
exists: this.job.metadata && 'first_layer_height' in this.job.metadata,
},
{
name: this.$t('History.LayerHeight').toString(),
value: `${this.job.metadata?.layer_height ?? 0} mm`,
exists: this.job.metadata && 'layer_height' in this.job.metadata,
},
{
name: this.$t('History.ObjectHeight').toString(),
value: `${this.job.metadata?.object_height ?? 0} mm`,
exists: this.job.metadata && 'object_height' in this.job.metadata,
},
{
name: this.$t('History.Slicer').toString(),
value: this.job.metadata?.slicer ?? '--',
exists: this.job.metadata && 'slicer' in this.job.metadata,
},
{
name: this.$t('History.SlicerVersion').toString(),
value: this.job.metadata?.slicer_version ?? '--',
exists: this.job.metadata && 'slicer_version' in this.job.metadata,
},
]
if ('auxiliary_data' in this.job) {
Expand Down
2 changes: 2 additions & 0 deletions src/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,7 @@
"EntryNextPerform": "Nächste Ausführung:",
"EntryPerformedAt": "Ausgeführt am {date}.",
"EntrySince": "Verwendet seit:",
"EstimatedFilament": "Geschätzte Filamentlänge",
"EstimatedFilamentWeight": "Geschätztes Filamentgewicht",
"EstimatedTime": "Geschätzte Zeit",
"FilamentBasedReminder": "Filament",
Expand Down Expand Up @@ -425,6 +426,7 @@
"SelectedJobs": "Ausg. Drucke",
"SelectedPrinttime": "Ausg. Druckzeit",
"Slicer": "Slicer",
"SlicerVersion": "Slicerversion",
"StartTime": "Startzeit",
"Statistics": "Statistik",
"Status": "Status",
Expand Down
2 changes: 2 additions & 0 deletions src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,7 @@
"EntryNextPerform": "Next perform:",
"EntryPerformedAt": "Performed at {date}.",
"EntrySince": "Used since:",
"EstimatedFilament": "Estimated Filament",
"EstimatedFilamentWeight": "Estimated Filament Weight",
"EstimatedTime": "Estimated Time",
"FilamentBasedReminder": "Filament",
Expand Down Expand Up @@ -425,6 +426,7 @@
"SelectedJobs": "Selected Jobs",
"SelectedPrinttime": "Selected Print Time",
"Slicer": "Slicer",
"SlicerVersion": "Slicer Version",
"StartTime": "Start Time",
"Statistics": "Statistics",
"Status": "Status",
Expand Down

0 comments on commit 7a877b2

Please sign in to comment.