mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-12-22 11:49:37 +00:00
Improve dates, times and schedule backup info
This commit is contained in:
parent
97b5cf04f5
commit
071444a9e7
28 changed files with 295 additions and 53 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue