mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 05:28:59 +01:00 
			
		
		
		
	refactor(time_selector): mark methods as private
This commit is contained in:
		
							parent
							
								
									fd2c65dcc0
								
							
						
					
					
						commit
						2d968b8e9c
					
				@ -98,7 +98,7 @@ export default class TimeSelector extends OptionsWidget {
 | 
				
			|||||||
        this.$timeScaleSelect.val(options[this.optionTimeScaleId]);
 | 
					        this.$timeScaleSelect.val(options[this.optionTimeScaleId]);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    convertTime(time: string | number, timeScale: string | number) {
 | 
					    private convertTime(time: string | number, timeScale: string | number) {
 | 
				
			||||||
        const value = typeof time === "number" ? time : parseInt(time);
 | 
					        const value = typeof time === "number" ? time : parseInt(time);
 | 
				
			||||||
        if (Number.isNaN(value)) {
 | 
					        if (Number.isNaN(value)) {
 | 
				
			||||||
            throw new Error(`Time needs to be a valid integer, but received: ${time}`);
 | 
					            throw new Error(`Time needs to be a valid integer, but received: ${time}`);
 | 
				
			||||||
@ -115,7 +115,7 @@ export default class TimeSelector extends OptionsWidget {
 | 
				
			|||||||
        };
 | 
					        };
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    handleTimeValidation() {
 | 
					    private handleTimeValidation() {
 | 
				
			||||||
        if (this.$timeValueInput.is(":invalid")) {
 | 
					        if (this.$timeValueInput.is(":invalid")) {
 | 
				
			||||||
            toastService.showError(t("time_selector.invalid_input"));
 | 
					            toastService.showError(t("time_selector.invalid_input"));
 | 
				
			||||||
            return false;
 | 
					            return false;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user