From eeff82547b016ff8ba40065a73cca5f2a45485c3 Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Sun, 24 Nov 2024 20:49:43 +0100 Subject: [PATCH] feat: enable history tab per default with 5 entries Signed-off-by: Stefan Dej --- src/components/panels/Status/History.vue | 2 +- src/components/panels/StatusPanel.vue | 2 +- src/components/settings/SettingsUiSettingsTab.vue | 2 +- src/store/gui/index.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/panels/Status/History.vue b/src/components/panels/Status/History.vue index df3a31dc3..2ad17df2c 100644 --- a/src/components/panels/Status/History.vue +++ b/src/components/panels/Status/History.vue @@ -29,7 +29,7 @@ export default class StatusPanelHistory extends Mixins(BaseMixin) { } get maxLength() { - return this.$store.state.gui.uiSettings.dashboardHistoryLimit ?? 0 + return this.$store.state.gui.uiSettings.dashboardHistoryLimit ?? 5 } get jobsCombined() { diff --git a/src/components/panels/StatusPanel.vue b/src/components/panels/StatusPanel.vue index 968f3f303..6334d6eef 100644 --- a/src/components/panels/StatusPanel.vue +++ b/src/components/panels/StatusPanel.vue @@ -389,7 +389,7 @@ export default class StatusPanel extends Mixins(BaseMixin) { } get displayHistoryTab() { - const count = this.$store.state.gui.uiSettings.dashboardHistoryLimit ?? 0 + const count = this.$store.state.gui.uiSettings.dashboardHistoryLimit ?? 5 return count > 0 } diff --git a/src/components/settings/SettingsUiSettingsTab.vue b/src/components/settings/SettingsUiSettingsTab.vue index d40dc8ee7..a05410af7 100644 --- a/src/components/settings/SettingsUiSettingsTab.vue +++ b/src/components/settings/SettingsUiSettingsTab.vue @@ -689,7 +689,7 @@ export default class SettingsUiSettingsTab extends Mixins(BaseMixin, ThemeMixin) } get dashboardHistoryLimit() { - return this.$store.state.gui.uiSettings.dashboardHistoryLimit ?? 0 + return this.$store.state.gui.uiSettings.dashboardHistoryLimit ?? 5 } set dashboardHistoryLimit(newVal) { diff --git a/src/store/gui/index.ts b/src/store/gui/index.ts index 90d6c3a06..a7f011147 100644 --- a/src/store/gui/index.ts +++ b/src/store/gui/index.ts @@ -185,7 +185,7 @@ export const getDefaultState = (): GuiState => { printstatusThumbnailZoom: true, dashboardFilesLimit: 5, dashboardFilesFilter: ['new', 'failed', 'completed'], - dashboardHistoryLimit: 0, + dashboardHistoryLimit: 5, }, view: { blockFileUpload: false,