-
Notifications
You must be signed in to change notification settings - Fork 357
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
Toolbar refactoring: Buttons ending with _new or _discover #173
Conversation
@vecerek Cannot apply the following label because they are not recognized: ui |
This pull request is not mergeable. Please rebase and repush. |
c4e11e2
to
d64c5ce
Compare
496f1db
to
a8c5d76
Compare
@romanblanco @PanSpagetka could you review, pls? |
@miq-bot remove_label wip |
a8c5d76
to
03bf4e8
Compare
This pull request is not mergeable. Please rebase and repush. |
03bf4e8
to
cbbd66c
Compare
This pull request is not mergeable. Please rebase and repush. |
cbbd66c
to
32a857a
Compare
This pull request is not mergeable. Please rebase and repush. |
@vecerek please rebase |
…e_button? (cherry picked from commit 7dadbe20d2e35ca6f3eab6b975825457c3f4a999)
(cherry picked from commit fe926f173c46e51847ebd7e5f05f007132dc7764)
32a857a
to
db576ae
Compare
@@ -390,7 +386,9 @@ def hide_button?(id) | |||
id !~ /^history_\d*/ && | |||
!id.starts_with?("dialog_") && !id.starts_with?("miq_task_") && |
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.
@vecerek Shouldn't this be removed with adding DialogNew
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.
Nevermind, I think I understand now, (thanks @PanSpagetka)
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.
@romanblanco without this condition, the #hide_button?
method would return true for all the dialog buttons thus skipping the call of their #visible?
method.
UPDATE: should be fixed by merging ManageIQ/manageiq#14044. |
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.
Reviewed from action_new
to the end in UI, seems to be OK so far, continue tomorrow
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.
After million years I clicked through this and didn't find anything wrong. So for me, It looks good 👍 @romanblanco ?
(cherry picked from commit acbed62f458da898bfb2545d9251d7a4c0c0be16)
(cherry picked from commit 57fc0506911779f1b386821d18a8bd71012ea7e4)
…classes (cherry picked from commit a5e6ea690bb3163285a4e471640272efd9f37d40)
db576ae
to
eb40b66
Compare
Checked commits vecerek/manageiq-ui-classic@d6817e6~...eb40b66 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 app/helpers/application_helper/toolbar/arbitration_profiles_center.rb
app/helpers/application_helper/toolbar/catalogitem_button_set_center.rb
app/helpers/application_helper/toolbar/catalogitem_buttons_center.rb
app/helpers/application_helper/toolbar/cloud_networks_center.rb
app/helpers/application_helper/toolbar/cloud_tenants_center.rb
app/helpers/application_helper/toolbar/conditions_center.rb
app/helpers/application_helper/toolbar/custom_button_set_center.rb
app/helpers/application_helper/toolbar/dialogs_center.rb
app/helpers/application_helper/toolbar/ems_cloud_center.rb
app/helpers/application_helper/toolbar/ems_clouds_center.rb
app/helpers/application_helper/toolbar/ems_containers_center.rb
app/helpers/application_helper/toolbar/ems_datawarehouses_center.rb
app/helpers/application_helper/toolbar/ems_infras_center.rb
app/helpers/application_helper/toolbar/ems_middlewares_center.rb
app/helpers/application_helper/toolbar/ems_networks_center.rb
app/helpers/application_helper/toolbar/host_aggregates_center.rb
app/helpers/application_helper/toolbar/hosts_center.rb
app/helpers/application_helper/toolbar/iso_datastores_center.rb
app/helpers/application_helper/toolbar/miq_actions_center.rb
app/helpers/application_helper/toolbar/miq_ae_domain_center.rb
app/helpers/application_helper/toolbar/miq_ae_domains_center.rb
app/helpers/application_helper/toolbar/miq_ae_instances_center.rb
app/helpers/application_helper/toolbar/miq_ae_methods_center.rb
app/helpers/application_helper/toolbar/miq_ae_namespace_center.rb
app/helpers/application_helper/toolbar/miq_alert_profiles_center.rb
app/helpers/application_helper/toolbar/miq_alerts_center.rb
app/helpers/application_helper/toolbar/miq_dialogs_center.rb
app/helpers/application_helper/toolbar/miq_policies_center.rb
app/helpers/application_helper/toolbar/miq_policy_profiles_center.rb
app/helpers/application_helper/toolbar/miq_report_center.rb
app/helpers/application_helper/toolbar/miq_reports_center.rb
app/helpers/application_helper/toolbar/miq_widget_sets_center.rb
app/helpers/application_helper/toolbar/persistent_volumes_center.rb
app/helpers/application_helper/toolbar/pxe_image_types_center.rb
app/helpers/application_helper/toolbar/pxe_servers_center.rb
app/helpers/application_helper/toolbar/security_groups_center.rb
app/helpers/application_helper/toolbar/servicetemplatecatalogs_center.rb
app/helpers/application_helper/toolbar/servicetemplates_center.rb
app/helpers/application_helper/toolbar/storage_managers_center.rb
app/helpers/application_helper/toolbar/template_clouds_center.rb
app/helpers/application_helper/toolbar/template_infras_center.rb
app/helpers/application_helper/toolbar/time_profiles_center.rb
app/helpers/application_helper/toolbar/vms_center.rb
app/helpers/application_helper/toolbar/zones_center.rb
|
@vecerek LGTM now 👍 |
Button classes created:
Button class hierarchy edited:
Links
Parent issue: ManageIQ/manageiq#6259
Related issue: ManageIQ/manageiq#6554
Pivotal Tracker: https://www.pivotaltracker.com/story/show/136441199
Original PR: ManageIQ/manageiq#13281