Skip to content
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 #disable_button: UserRole #552

Conversation

vecerek
Copy link

@vecerek vecerek commented Mar 2, 2017

Toolbar button ids Toolbar button classes created
rbac_role_delete RbacRoleDelete < Basic
rbac_role_edit RbacRoleEdit < Basic

Links

Parent issue: ManageIQ/manageiq#6259
Related issue: ManageIQ/manageiq#6554
Pivotal Tracker: https://www.pivotaltracker.com/story/show/140768853

@vecerek vecerek force-pushed the toolbar_refactoring__disable_button__user_role branch from 649d415 to cb228a9 Compare March 2, 2017 14:32
@miq-bot
Copy link
Member

miq-bot commented Mar 3, 2017

This pull request is not mergeable. Please rebase and repush.

Attila Vecerek added 3 commits March 3, 2017 19:18
- Create spec examples for RbacUserRoleDelete button class
- Implement RbacUserRole button class
- Assign rbac_role_delete button to its newly created class
- Remove rbac_role_delete button from #disable_button
- Create spec examples for RbacRoleEdit button class
- Implement RbacRoleEdit button class
- Assign rbac_role_edit button to its newly created class
- Remove rbac_role_edit button from #disable_button
@vecerek vecerek force-pushed the toolbar_refactoring__disable_button__user_role branch from cb228a9 to 7b4654b Compare March 3, 2017 18:18
@miq-bot
Copy link
Member

miq-bot commented Mar 3, 2017

Checked commits vecerek/manageiq-ui-classic@1f67b3a~...7b4654b with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
6 files checked, 3 offenses detected

app/helpers/application_helper/toolbar/user_role_center.rb

spec/helpers/application_helper/buttons/rbac_role_delete_spec.rb

@romanblanco
Copy link
Member

@miq-bot add_label bug
@miq-bot assign @mzazrivec

@miq-bot miq-bot added the bug label Mar 6, 2017
@miq-bot miq-bot assigned mzazrivec and unassigned romanblanco and PanSpagetka Mar 6, 2017
Copy link
Member

@romanblanco romanblanco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR fixes issue with disabling toolbar buttons, because the correct class for the @record should be MiqUserRole.

Now the buttons are correctly disabled 👍

@romanblanco
Copy link
Member

Before: (the "Delete this Role" button should be disabled)

screenshot from 2017-03-06 15-13-19

After:

screenshot from 2017-03-06 15-13-35

@mzazrivec mzazrivec added this to the Sprint 56 Ending Mar 13, 2017 milestone Mar 6, 2017
@mzazrivec mzazrivec merged commit 77eea4e into ManageIQ:master Mar 6, 2017
@vecerek vecerek deleted the toolbar_refactoring__disable_button__user_role branch March 7, 2017 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants