Skip to content

Commit

Permalink
moveInto Profiles
Browse files Browse the repository at this point in the history
documents (in particular profiles) referenced in others' relations as 'isPresentIn' will show Arrow downright fore 'moveInto' action
  • Loading branch information
maxhaibt committed Jan 26, 2024
1 parent 3391519 commit ffefdae
Show file tree
Hide file tree
Showing 3 changed files with 69,264 additions and 69,329 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ lerna-debug.log
**/.lsp
**/.clj-kondo

mobile/package-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,12 @@ export class NavigationService {

if (!document.resource.id) return false; // do not show as long as it is not saved
if (this.viewFacade.isInExtendedSearchMode()) return false;

return (this.projectConfiguration
const relations = this.projectConfiguration
.getRelationsForRangeCategory(document.resource.category)
.map(relationDefinition => relationDefinition.name)
.indexOf('liesWithin') !== -1);
.map(relationDefinition => relationDefinition.name);

return (relations.indexOf('liesWithin') !== -1 || relations.indexOf('isPresentIn') !== -1);
}


Expand Down
Loading

0 comments on commit ffefdae

Please sign in to comment.