Skip to content

Commit

Permalink
feat: enable history tab per default with 5 entries
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Dej <[email protected]>
  • Loading branch information
meteyou committed Nov 24, 2024
1 parent aff16d5 commit eeff825
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/panels/Status/History.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion src/components/panels/StatusPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/settings/SettingsUiSettingsTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion src/store/gui/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ export const getDefaultState = (): GuiState => {
printstatusThumbnailZoom: true,
dashboardFilesLimit: 5,
dashboardFilesFilter: ['new', 'failed', 'completed'],
dashboardHistoryLimit: 0,
dashboardHistoryLimit: 5,
},
view: {
blockFileUpload: false,
Expand Down

0 comments on commit eeff825

Please sign in to comment.