-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[NAE-2034] Open first view #261
base: release/6.5.0
Are you sure you want to change the base?
Conversation
- implement resolving of auto-select views in double-drawer
- abstract loading and navigation in double drawer menu - implement default view opening in double drawer menu
- update tests according to changes
NavigationItem, | ||
RIGHT_SIDE_INIT_PAGE_SIZE, SETTINGS_TRANSITION_ID, | ||
UriNodeResource | ||
} from '../../public-api'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dont import from public-api, change it to specific files
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks... done
- update imports in double-drawer-navigation.service - add event emit in double-drawer-navigation.service
|
if (!node) { | ||
return; | ||
} | ||
if (node.parentId && !node.parent) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can the condition be flipped to get rid of nesting if clauses?
let itemsWithView: Array<NavigationItem> = allItems.filter(item => DoubleDrawerUtils.hasItemView(item)); | ||
if (itemsWithView.length > 0) { | ||
this._redirectService.redirect(autoOpenItems[0].routing.path); | ||
return; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn`t this return redundant?
Description
Implemented rule, that selects particular view of the menu item when clicked on folder or initialized menu. Also moved the code, that load and navigates through the menu in separate service and utils. This service holds the menu resources.
Implements NAE-2034
Dependencies
No dependency
Third party dependencies
No new dependencies were introduced
Blocking Pull requests
There are no dependencies on other PR
How Has Been This Tested?
Manually and by tests
Test Configuration
Checklist: