Improve dates, times and schedule backup info

This commit is contained in:
mfcar 2023-02-27 18:04:26 +00:00
parent 97b5cf04f5
commit 071444a9e7
No known key found for this signature in database
28 changed files with 295 additions and 53 deletions

View file

@ -68,8 +68,14 @@
</ui-tooltip>
</div>
<div class="py-2">
<div class="flex items-end py-2">
<ui-dropdown :label="$strings.LabelSettingsDateFormat" v-model="newServerSettings.dateFormat" :items="dateFormats" small class="max-w-52" @input="(val) => updateSettingsKey('dateFormat', val)" />
<span class="ml-2 text-yellow-400">{{ dateExample }}</span>
</div>
<div class="flex items-end py-2">
<ui-dropdown :label="$strings.LabelSettingsTimeFormat" v-model="newServerSettings.timeFormat" :items="timeFormats" small class="max-w-52" @input="(val) => updateSettingsKey('timeFormat', val)" />
<span class="ml-2 text-yellow-400">{{ timeExample }}</span>
</div>
<div class="py-2">
@ -293,7 +299,18 @@ export default {
},
dateFormats() {
return this.$store.state.globals.dateFormats
}
},
timeFormats() {
return this.$store.state.globals.timeFormats
},
dateExample() {
const date = new Date(2014, 2, 25);
return this.$formatJsDate(date, this.newServerSettings.dateFormat)
},
timeExample() {
const date = new Date(2014, 2, 25, 17, 30, 0);
return this.$formatJsTime(date, this.newServerSettings.timeFormat)
},
},
methods: {
updateSortingPrefixes(val) {
@ -420,4 +437,4 @@ export default {
this.initServerSettings()
}
}
</script>
</script>