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 3c26e00fe1
commit 616e2c1c29
6 changed files with 11 additions and 7 deletions

View File

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