diff --git a/src/components/charts/HistoryAllPrintStatus.vue b/src/components/charts/HistoryAllPrintStatus.vue
index 6ca6c57e..d2e396f0 100644
--- a/src/components/charts/HistoryAllPrintStatus.vue
+++ b/src/components/charts/HistoryAllPrintStatus.vue
@@ -12,6 +12,8 @@ import Component from 'vue-class-component'
import { Mixins, Watch } from 'vue-property-decorator'
import BaseMixin from '@/components/mixins/base'
import type { ECharts } from 'echarts/core'
+import { ECBasicOption } from 'echarts/types/dist/shared'
+import { ServerHistoryStateAllPrintStatusEntry } from '@/store/server/history/types'
@Component({
components: {},
@@ -21,7 +23,7 @@ export default class HistoryAllPrintStatus extends Mixins(BaseMixin) {
historyAllPrintStatus: any
}
- private chartOptions: any = {
+ private chartOptions: ECBasicOption = {
darkMode: true,
animation: false,
grid: {
@@ -64,12 +66,20 @@ export default class HistoryAllPrintStatus extends Mixins(BaseMixin) {
}
get printStatusArray() {
- return this.selectedJobs.length ? this.selectedPrintStatusArray : this.allPrintStatusArray
+ const output: ServerHistoryStateAllPrintStatusEntry[] = []
+ const orgArray = this.selectedJobs.length ? this.selectedPrintStatusArray : this.allPrintStatusArray
+
+ orgArray.forEach((status: ServerHistoryStateAllPrintStatusEntry) => {
+ const tmp = { ...status }
+ tmp.name = status.displayName
+ output.push(tmp)
+ })
+
+ return output
}
get chart(): ECharts | null {
- const historyAllPrintStatus = this.$refs.historyAllPrintStatus
- return historyAllPrintStatus?.inst ?? null
+ return this.$refs.historyAllPrintStatus ?? null
}
mounted() {
@@ -90,11 +100,15 @@ export default class HistoryAllPrintStatus extends Mixins(BaseMixin) {
@Watch('printStatusArray')
printStatusArrayChanged(newVal: any) {
- this.chart?.setOption({
- series: {
- data: newVal,
+ this.chart?.setOption(
+ {
+ series: {
+ data: newVal,
+ },
},
- })
+ false,
+ true
+ )
}
visibilityChanged(isVisible: boolean) {
diff --git a/src/components/charts/HistoryFilamentUsage.vue b/src/components/charts/HistoryFilamentUsage.vue
index 74711e0a..5b7b0c38 100644
--- a/src/components/charts/HistoryFilamentUsage.vue
+++ b/src/components/charts/HistoryFilamentUsage.vue
@@ -109,8 +109,7 @@ export default class HistoryPrinttimeAvg extends Mixins(BaseMixin) {
}
get chart(): ECharts | null {
- const historyFilamentUsage = this.$refs.historyFilamentUsage
- return historyFilamentUsage?.inst ?? null
+ return this.$refs.historyFilamentUsage ?? null
}
mounted() {
@@ -131,11 +130,15 @@ export default class HistoryPrinttimeAvg extends Mixins(BaseMixin) {
@Watch('filamentUsageArray')
filamentUsageArrayChanged(newVal: any) {
- this.chart?.setOption({
- series: {
- data: newVal,
+ this.chart?.setOption(
+ {
+ series: {
+ data: newVal,
+ },
},
- })
+ false,
+ true
+ )
}
visibilityChanged(isVisible: boolean) {
diff --git a/src/components/charts/HistoryPrinttimeAvg.vue b/src/components/charts/HistoryPrinttimeAvg.vue
index fcdff4fb..776e54c5 100644
--- a/src/components/charts/HistoryPrinttimeAvg.vue
+++ b/src/components/charts/HistoryPrinttimeAvg.vue
@@ -95,8 +95,7 @@ export default class HistoryPrinttimeAvg extends Mixins(BaseMixin) {
}
get chart(): ECharts | null {
- const historyPrinttimeAvg = this.$refs.historyPrinttimeAvg
- return historyPrinttimeAvg?.inst ?? null
+ return this.$refs.historyPrinttimeAvg ?? null
}
mounted() {
@@ -117,11 +116,15 @@ export default class HistoryPrinttimeAvg extends Mixins(BaseMixin) {
@Watch('printtimeAvgArray')
printtimeAvgArrayChanged(newVal: any) {
- this.chart?.setOption({
- series: {
- data: newVal,
+ this.chart?.setOption(
+ {
+ series: {
+ data: newVal,
+ },
},
- })
+ false,
+ true
+ )
}
visibilityChanged(isVisible: boolean) {
diff --git a/src/components/panels/.i18nignore b/src/components/panels/.i18nignore
new file mode 100644
index 00000000..6981c064
--- /dev/null
+++ b/src/components/panels/.i18nignore
@@ -0,0 +1,7 @@
+$t('History.StatusValues.cancelled')
+$t('History.StatusValues.completed')
+$t('History.StatusValues.error')
+$t('History.StatusValues.in_progress')
+$t('History.StatusValues.klippy_disconnect')
+$t('History.StatusValues.klippy_shutdown')
+$t('History.StatusValues.server_exit')
\ No newline at end of file
diff --git a/src/components/panels/HistoryListPanel.vue b/src/components/panels/HistoryListPanel.vue
index a83ce464..a9fad7e7 100644
--- a/src/components/panels/HistoryListPanel.vue
+++ b/src/components/panels/HistoryListPanel.vue
@@ -69,9 +69,7 @@
class="mt-0"
hide-details
:input-value="status.showInTable"
- :label="
- $t('History.ShowStatusName', { name: status.name, count: status.value })
- "
+ :label="`${status.displayName} (${status.value})`"
@change="changeStatusVisible(status)">