bugfix(configfiles): files sorting store doesn't work

Signed-off-by: Stefan Dej <meteyou@gmail.com>
This commit is contained in:
Stefan Dej 2021-08-24 20:41:05 +02:00
parent 6e63324187
commit 3cfa85fc2b

View File

@ -488,6 +488,8 @@ export default class ConfigFilesPanel extends Mixins(BaseMixin) {
}
set sortBy(newVal) {
if (newVal === undefined) newVal = "filename"
this.$store.dispatch("gui/saveSetting", { name: 'settings.configfiles.sortBy', value: newVal })
}
@ -496,6 +498,8 @@ export default class ConfigFilesPanel extends Mixins(BaseMixin) {
}
set sortDesc(newVal) {
if (newVal === undefined) newVal = false
this.$store.dispatch("gui/saveSetting", { name: 'settings.configfiles.sortDesc', value: newVal })
}