add support for the persistent #sortDirection and #sortFoldersFirst (one time UI action exists), closes #3046

This commit is contained in:
zadam
2022-08-07 23:51:23 +02:00
parent b2a63afc28
commit 3c1f826ead
5 changed files with 10 additions and 7 deletions

View File

@@ -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);
}
}