Skip to content

Commit

Permalink
new setting: date / time: month display format
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksey-hoffman committed Aug 28, 2021
1 parent 05d1786 commit 8401af7
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions src/views/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,44 @@ Copyright © 2021 - present Aleksey Hoffman. All rights reserved.
</template>
</section-settings>

<section-settings
class="content-area__content-card__section"
:header="{
icon: {
name: 'mdi-timetable'
},
title: 'Date / time'
}"
>
<template v-slot:content>
<div class="text--sub-title-1 mt-2">
Month format
</div>

<v-radio-group
class="py-0 mt-0"
v-model="dateTimeMonth"
hide-details
>
<v-radio
label="Numeric"
value="numeric"
></v-radio>
<v-radio
label="Short"
value="short"
></v-radio>
</v-radio-group>

<div class="mt-2">
Example:
<span class="inline-code--light">
{{localDateTimeExample}}
</span>
</div>
</template>
</section-settings>

<section-settings
class="content-area__content-card__section"
:header="{
Expand Down Expand Up @@ -1314,6 +1352,7 @@ export default {
windowTransparencyEffectOpacity: 'storageData.settings.windowTransparencyEffect.opacity',
windowTransparencyEffectDataBackgroundSelected: 'storageData.settings.windowTransparencyEffect.data.background.selected',
animationsOnRouteChangeMediaBannerIn: 'storageData.settings.animations.onRouteChangeMediaBannerIn',
dateTimeMonth: 'storageData.settings.dateTime.month',
pointerButton3onMouseUpEvent: 'storageData.settings.input.pointerButtons.button3.onMouseUpEvent',
pointerButton3onMouseUpEventItems: 'storageData.settings.input.pointerButtons.button3.onMouseUpEventItems',
pointerButton4onMouseUpEvent: 'storageData.settings.input.pointerButtons.button4.onMouseUpEvent',
Expand Down Expand Up @@ -1536,6 +1575,12 @@ export default {
}
}
},
localDateTimeExample () {
return this.$utils.getLocalDateTime(
Date.now(),
this.$store.state.storageData.settings.dateTime
)
}
},
methods: {
getSearchTimeEstimates (params) {
Expand Down

0 comments on commit 8401af7

Please sign in to comment.