mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 21:11:30 +08:00 
			
		
		
		
	feat: set TimeSelector minimumSeconds for revision_snapshot_interval and remove TODO
This commit is contained in:
		
							parent
							
								
									28148b32d2
								
							
						
					
					
						commit
						bf41c54bd0
					
				| @ -8,7 +8,7 @@ const TPL = ` | ||||
|     <p class="use-tn-links">${t("revisions_snapshot_interval.note_revisions_snapshot_description")}</p> | ||||
|     <div id="time-selector-placeholder"></div> | ||||
| </div>`;
 | ||||
| //TriliumNextTODO: add support for setting minimum number of entered seconds -> snapshot revision should not be less than 10 seconds
 | ||||
| 
 | ||||
| export default class RevisionsSnapshotIntervalOptions extends TimeSelector { | ||||
| 
 | ||||
|     constructor() { | ||||
| @ -16,7 +16,8 @@ export default class RevisionsSnapshotIntervalOptions extends TimeSelector { | ||||
|             widgetId: "revision-snapshot-time-interval", | ||||
|             widgetLabelId: "revisions_snapshot_interval.snapshot_time_interval_label", | ||||
|             optionValueId: "revisionSnapshotTimeInterval", | ||||
|             optionTimeScaleId: "revisionSnapshotTimeIntervalTimeScale" | ||||
|             optionTimeScaleId: "revisionSnapshotTimeIntervalTimeScale", | ||||
|             minimumSeconds: 10 | ||||
|         }); | ||||
|         super.doRender(); | ||||
|     } | ||||
|  | ||||
| @ -36,7 +36,6 @@ const TPL = (options: Omit<TimeSelectorConstructor, "optionValueId" | "optionTim | ||||
|     } | ||||
| </style>`;
 | ||||
| 
 | ||||
| //TriliumNextTODO: add support for setting minimum number of entered seconds
 | ||||
| export default class TimeSelector extends OptionsWidget { | ||||
|     private $timeValueInput!: JQuery<HTMLInputElement>; | ||||
|     private $timeScaleSelect!: JQuery<HTMLSelectElement>; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Panagiotis Papadopoulos
						Panagiotis Papadopoulos