mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 04:51:31 +08:00 
			
		
		
		
	Merge pull request #1240 from rom1dep/calendar_enh_color
feat(view/calendar): support coloring
This commit is contained in:
		
						commit
						300bb561bb
					
				| @ -192,6 +192,7 @@ export default class CalendarView extends ViewMode { | ||||
|         for (const note of notes) { | ||||
|             const startDate = note.getAttributeValue("label", "startDate"); | ||||
|             const customTitle = note.getAttributeValue("label", "calendar:title"); | ||||
|             const color = note.getAttributeValue("label", "calendar:color") ??  note.getAttributeValue("label", "color") ?? undefined; | ||||
| 
 | ||||
|             if (!startDate) { | ||||
|                 continue; | ||||
| @ -203,7 +204,8 @@ export default class CalendarView extends ViewMode { | ||||
|                     title: title, | ||||
|                     start: startDate, | ||||
|                     url: `#${note.noteId}`, | ||||
|                     noteId: note.noteId | ||||
|                     noteId: note.noteId, | ||||
|                     color: color, | ||||
|                 }; | ||||
| 
 | ||||
|                 const endDate = CalendarView.#offsetDate(note.getAttributeValue("label", "endDate") ?? startDate, 1); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran