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