diff --git a/src/components/settings/General/GeneralReset.vue b/src/components/settings/General/GeneralReset.vue index 8573611f..d2553a1b 100644 --- a/src/components/settings/General/GeneralReset.vue +++ b/src/components/settings/General/GeneralReset.vue @@ -65,7 +65,7 @@ export default class SettingsGeneralTabResetDatabase extends Mixins(BaseMixin, S resetCheckboxes: string[] = [] async mounted() { - this.resetableNamespaces = await this.loadBackupableNamespaces() + await this.loadResetableNamespaces() } onSelectResetCheckboxes(resetCheckboxes: string[]) { @@ -78,10 +78,26 @@ export default class SettingsGeneralTabResetDatabase extends Mixins(BaseMixin, S } async openDialog() { - this.resetableNamespaces = await this.loadBackupableNamespaces() + await this.loadResetableNamespaces() this.showDialog = true } + async loadResetableNamespaces() { + this.resetableNamespaces = await this.loadBackupableNamespaces() + + if (this.moonrakerComponents.includes('history')) { + this.resetableNamespaces.push({ + value: 'history_jobs', + label: this.$t('Settings.GeneralTab.DbHistoryJobs'), + }) + + this.resetableNamespaces.push({ + value: 'history_totals', + label: this.$t('Settings.GeneralTab.DbHistoryTotals'), + }) + } + } + closeDialog() { this.showDialog = false } diff --git a/src/locales/en.json b/src/locales/en.json index b7234078..704471f0 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -506,10 +506,6 @@ "KlipperUpdateQuestionConfig": "This update may also contain changes to config parameters that would need to be modified in the printer.cfg file, see the change log for details.", "MoonrakerUpdateQuestion": "This will update the Moonraker API. Changes to the moonraker.conf file may be required to continue using the machine.", "MoreCommitsInfo": "A maximum of 30 commits can be displayed here. To see all commits, please click on the following link:", - "Notification": { - "Detached": "Detached state is not an error nor is it a problem. It only means that additional commits exist in the local repository that do not exist in the remote repository.", - "Dirty": "The local repository has been modified and cannot be updated in this state. Please recover this repository." - }, "OSPackages": "OS-Packages", "SoftRecovery": "Soft Recovery", "StartUpdate": "Start Update",