mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 21:36:05 +01:00
add support for the persistent #sortDirection and #sortFoldersFirst (one time UI action exists), closes #3046
This commit is contained in:
@@ -44,7 +44,7 @@ eventService.subscribe([ eventService.ENTITY_CHANGED, eventService.ENTITY_DELETE
|
||||
if (entityName === 'attributes') {
|
||||
runAttachedRelations(entity.getNote(), 'runOnAttributeChange', entity);
|
||||
|
||||
if (entity.type === 'label' && entity.name === 'sorted') {
|
||||
if (entity.type === 'label' && ['sorted', 'sortDirection', 'sortFoldersFirst'].includes(entity.name)) {
|
||||
handleSortedAttribute(entity);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user