fix: fix missing reset options for print history data (#1534)
This commit is contained in:
parent
fd293d21ec
commit
9f08afc138
@ -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
|
||||
}
|
||||
|
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user