Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(history): add missing fields in detail dialog #1940

Merged
merged 1 commit into from
Jul 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading