undo sync-config-related changes
This commit is contained in:
parent
8fabbe9525
commit
dbdf81d8b3
1 changed files with 3 additions and 5 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue