mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-11-04 15:11:31 +08:00 
			
		
		
		
	fix: 🐛 fix calendar option error
This commit is contained in:
		
							parent
							
								
									a80932d3f9
								
							
						
					
					
						commit
						ae7aaaf263
					
				@ -148,6 +148,8 @@ export default class LocalizationOptions extends OptionsWidget {
 | 
			
		||||
            } else {
 | 
			
		||||
                $minDaysRow.hide();
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            this.updateOption("firstWeekOfYear", value);
 | 
			
		||||
        });
 | 
			
		||||
 | 
			
		||||
        const currentValue = this.$widget.find('input[name="first-week-of-year"]:checked').val();
 | 
			
		||||
@ -156,7 +158,7 @@ export default class LocalizationOptions extends OptionsWidget {
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        this.$widget.find("#min-days-in-first-week").on("change", () => {
 | 
			
		||||
            const minDays = String(this.$widget.find("#min-days-in-first-week").val());
 | 
			
		||||
            const minDays = this.$widget.find("#min-days-in-first-week").val();
 | 
			
		||||
            this.updateOption("minDaysInFirstWeek", minDays);
 | 
			
		||||
        });
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -1,4 +1,4 @@
 | 
			
		||||
import type { FilterOptionsByType, OptionDefinitions, OptionMap, OptionNames } from "../../../../../services/options_interface.js";
 | 
			
		||||
import type { FilterOptionsByType, OptionMap, OptionNames } from "../../../../../services/options_interface.js";
 | 
			
		||||
import type { EventData, EventListener } from "../../../components/app_context.js";
 | 
			
		||||
import type FNote from "../../../entities/fnote.js";
 | 
			
		||||
import { t } from "../../../services/i18n.js";
 | 
			
		||||
 | 
			
		||||
@ -72,6 +72,8 @@ const ALLOWED_OPTIONS = new Set<OptionNames>([
 | 
			
		||||
    "locale",
 | 
			
		||||
    "formattingLocale",
 | 
			
		||||
    "firstDayOfWeek",
 | 
			
		||||
    "firstWeekOfYear",
 | 
			
		||||
    "minDaysInFirstWeek",
 | 
			
		||||
    "languages",
 | 
			
		||||
    "textNoteEditorType",
 | 
			
		||||
    "textNoteEditorMultilineToolbar",
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user