mirror of
				https://github.com/advplyr/audiobookshelf.git
				synced 2025-10-27 11:18:14 +01:00 
			
		
		
		
	Remove currently from date/time setting
This commit is contained in:
		
							parent
							
								
									6aeed24296
								
							
						
					
					
						commit
						b4f1fd5b25
					
				| @ -70,17 +70,14 @@ | |||||||
| 
 | 
 | ||||||
|           <div class="flex-grow py-2"> |           <div class="flex-grow py-2"> | ||||||
|             <ui-dropdown :label="$strings.LabelSettingsDateFormat" v-model="newServerSettings.dateFormat" :items="dateFormats" small class="max-w-52" @input="(val) => updateSettingsKey('dateFormat', val)" /> |             <ui-dropdown :label="$strings.LabelSettingsDateFormat" v-model="newServerSettings.dateFormat" :items="dateFormats" small class="max-w-52" @input="(val) => updateSettingsKey('dateFormat', val)" /> | ||||||
|             <p class="text-xs ml-1 text-warning text-opacity-60">{{ $strings.LabelExample }}: {{ dateExample }}</p> |             <p class="text-xs ml-1 text-white text-opacity-60">{{ $strings.LabelExample }}: {{ dateExample }}</p> | ||||||
|             <p class="text-xs ml-1 text-white text-opacity-60">{{ $strings.LabelCurrently }} {{ currentlyDate }}</p> |  | ||||||
|           </div> |           </div> | ||||||
| 
 | 
 | ||||||
|           <div class="flex-grow py-2"> |           <div class="flex-grow py-2"> | ||||||
|             <ui-dropdown :label="$strings.LabelSettingsTimeFormat" v-model="newServerSettings.timeFormat" :items="timeFormats" small class="max-w-52" @input="(val) => updateSettingsKey('timeFormat', val)" /> |             <ui-dropdown :label="$strings.LabelSettingsTimeFormat" v-model="newServerSettings.timeFormat" :items="timeFormats" small class="max-w-52" @input="(val) => updateSettingsKey('timeFormat', val)" /> | ||||||
|             <p class="text-xs ml-1 text-warning text-opacity-60">{{ $strings.LabelExample }}: {{ timeExample }}</p> |             <p class="text-xs ml-1 text-white text-opacity-60">{{ $strings.LabelExample }}: {{ timeExample }}</p> | ||||||
|             <p class="text-xs ml-1 text-white text-opacity-60">{{ $strings.LabelCurrently }} {{ currentlyTime }}</p> |  | ||||||
|           </div> |           </div> | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
|           <div class="py-2"> |           <div class="py-2"> | ||||||
|             <ui-dropdown :label="$strings.LabelLanguageDefaultServer" ref="langDropdown" v-model="newServerSettings.language" :items="$languageCodeOptions" small class="max-w-52" @input="updateServerLanguage" /> |             <ui-dropdown :label="$strings.LabelLanguageDefaultServer" ref="langDropdown" v-model="newServerSettings.language" :items="$languageCodeOptions" small class="max-w-52" @input="updateServerLanguage" /> | ||||||
|           </div> |           </div> | ||||||
| @ -306,20 +303,14 @@ export default { | |||||||
|     timeFormats() { |     timeFormats() { | ||||||
|       return this.$store.state.globals.timeFormats |       return this.$store.state.globals.timeFormats | ||||||
|     }, |     }, | ||||||
|     currentlyDate() { |  | ||||||
|       return this.$formatJsDate(new Date(), this.newServerSettings.dateFormat) |  | ||||||
|     }, |  | ||||||
|     currentlyTime() { |  | ||||||
|       return this.$formatJsTime(new Date(), this.newServerSettings.timeFormat) |  | ||||||
|     }, |  | ||||||
|     dateExample() { |     dateExample() { | ||||||
|       const date = new Date(2014, 2, 25); |       const date = new Date(2014, 2, 25) | ||||||
|       return this.$formatJsDate(date, this.newServerSettings.dateFormat) |       return this.$formatJsDate(date, this.newServerSettings.dateFormat) | ||||||
|     }, |     }, | ||||||
|     timeExample() { |     timeExample() { | ||||||
|       const date = new Date(2014, 2, 25, 17, 30, 0); |       const date = new Date(2014, 2, 25, 17, 30, 0) | ||||||
|       return this.$formatJsTime(date, this.newServerSettings.timeFormat) |       return this.$formatJsTime(date, this.newServerSettings.timeFormat) | ||||||
|     }, |     } | ||||||
|   }, |   }, | ||||||
|   methods: { |   methods: { | ||||||
|     updateSortingPrefixes(val) { |     updateSortingPrefixes(val) { | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user