Skip to content

Commit

Permalink
refactor: rename option amount to jobs
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Dej <[email protected]>
  • Loading branch information
meteyou committed Sep 21, 2024
1 parent 45f3e5a commit 19f0116
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/charts/HistoryAllPrintStatusChart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { HistoryStatsValueNames } from '@/store/server/history/types'
components: {},
})
export default class HistoryAllPrintStatusChart extends Mixins(BaseMixin, ThemeMixin, HistoryStatsMixin) {
@Prop({ type: String, default: 'amount' }) valueName!: HistoryStatsValueNames
@Prop({ type: String, default: 'jobs' }) valueName!: HistoryStatsValueNames
@Ref('historyAllPrintStatus') historyAllPrintStatus!: typeof VueECharts
get chartOptions(): ECBasicOption {
Expand Down
4 changes: 2 additions & 2 deletions src/components/panels/HistoryStatisticsPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ export default class HistoryStatisticsPanel extends Mixins(BaseMixin, HistoryMix
mdiDatabaseArrowDownOutline = mdiDatabaseArrowDownOutline
formatPrintTime = formatPrintTime
toggleValue = 'amount'
toggleValue = 'jobs'
get toggleValueOptions(): { text: TranslateResult; value: HistoryStatsValueNames }[] {
return [
{ text: this.$t('History.Amount'), value: 'amount' },
{ text: this.$t('History.Jobs'), value: 'jobs' },
{ text: this.$t('History.Filament'), value: 'filament' },
{ text: this.$t('History.Time'), value: 'time' },
]
Expand Down
1 change: 0 additions & 1 deletion src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,6 @@
"AddNote": "Add note",
"AddToQueueSuccessful": "File {filename} added to Queue.",
"AllJobs": "All",
"Amount": "Amount",
"AvgPrinttime": "Print Time - Ø",
"Cancel": "Cancel",
"Chart": "Chart",
Expand Down
2 changes: 1 addition & 1 deletion src/store/server/history/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,4 @@ export interface ServerHistoryStateAllPrintStatusEntry {
}
}

export type HistoryStatsValueNames = 'amount' | 'filament' | 'time'
export type HistoryStatsValueNames = 'jobs' | 'filament' | 'time'

0 comments on commit 19f0116

Please sign in to comment.