-
Notifications
You must be signed in to change notification settings - Fork 989
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
Fixes #14869 - Adds import button to environments welcome page #3501
Conversation
@@ -11,4 +11,8 @@ | |||
<div class="blank-slate-pf-main-action"> | |||
<%= new_link(_('New Puppet environment'), {}, { :class => "btn-lg" }) %> | |||
</div> | |||
<p><%= _('Or') %></p> |
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.
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.
That breaks https://www.patternfly.org/patterns/empty-state/, please try to adapt to use it @shlomizadok 😄
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.
how strict should we follow it? according to the PF, it should be separate button for each proxy but I'd prefer having the select (current implementation) since there might be a lot of proxies available...
Removed the 'Or' sentence. Adapted to pf |
Tested, works fine, @dLobatog any thoughts on the select vs. multiple buttons? If not, I'd merge. |
@@ -11,4 +11,7 @@ | |||
<div class="blank-slate-pf-main-action"> | |||
<%= new_link(_('New Puppet environment'), {}, { :class => "btn-lg" }) %> | |||
</div> | |||
<div class="blank-slate-pf-secondary-action"> | |||
<%= select_action_button( _('Import'), {}, import_proxy_links(hash_for_import_environments_environments_path, 'btn btn-default')) %> |
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.
We already have a import_proxy_select
helper that does this (and is used in the index page for the same button)
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.
Fails on Ruby 2.3 unrelated(?) JS test |
[test] |
Merged as 8aea793, thanks @shlomizadok |
No description provided.