-
Notifications
You must be signed in to change notification settings - Fork 356
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
introduce preselectedType for AccessConsoles component #906
introduce preselectedType for AccessConsoles component #906
Conversation
cab2260
to
2f66053
Compare
Cc @lizsurette |
2f66053
to
23f080d
Compare
PatternFly-React preview: https://906-pr-patternfly-react-patternfly.surge.sh |
Pull Request Test Coverage Report for Build 3320
💛 - Coveralls |
Cc @lizsurette , can you please have a look? This just enables pre-selection one of the consoles within AccessConsoles, so the initial state is not empty from the user perspective. |
@mareklibra This looks great to me! I think this should be the default, honestly. |
Only available consoles are listed in the AccessConsole's dropdown. Prior this fix, all component types were always listed.
The AccessConsoles component can be newly requested to render particular console type by default instead of just empty space.
d011eb4
23f080d
to
d011eb4
Compare
Rebased to resolve conflict only. |
@dtaylor113 , @jeff-phillips-18 , can you please have another look? |
What: introduce
preselectedType
forAccessConsoles
componentPrior this patch, the component started "empty" (no console rendered).
The new property can be used to pre-select particular component for initial state.
As a part of this PR, fix for not-rendering unlisted console types is provided.