undo sync-config-related changes

This commit is contained in:
Henry Jameson 2026-02-13 15:34:37 +02:00
commit dbdf81d8b3

View file

@ -1,5 +1,3 @@
import { useSyncConfigStore } from 'src/stores/sync_config.js'
import * as DateUtils from 'src/services/date_utils/date_utils.js' import * as DateUtils from 'src/services/date_utils/date_utils.js'
import localeService from 'src/services/locale/locale.service.js' import localeService from 'src/services/locale/locale.service.js'
@ -15,17 +13,17 @@ export default {
}, },
computed: { computed: {
shouldUseAbsoluteTimeFormat() { shouldUseAbsoluteTimeFormat() {
if (!useSyncConfigStore().mergedConfig.useAbsoluteTimeFormat) { if (!this.$store.getters.mergedConfig.useAbsoluteTimeFormat) {
return false return false
} }
return ( return (
DateUtils.durationStrToMs( DateUtils.durationStrToMs(
useSyncConfigStore().mergedConfig.absoluteTimeFormatMinAge, this.$store.getters.mergedConfig.absoluteTimeFormatMinAge,
) <= this.relativeTimeMs ) <= this.relativeTimeMs
) )
}, },
time12hFormat() { time12hFormat() {
return useSyncConfigStore().mergedConfig.absoluteTimeFormat12h === '12h' return this.$store.getters.mergedConfig.absoluteTimeFormat12h === '12h'
}, },
browserLocale() { browserLocale() {
return localeService.internalToBrowserLocale(this.$i18n.locale) return localeService.internalToBrowserLocale(this.$i18n.locale)