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

Dupe message when clicking Reset button in gtl page mode #2457

Merged
merged 1 commit into from
Oct 30, 2017

Conversation

GregP
Copy link
Contributor

@GregP GregP commented Oct 18, 2017

Added early setting for no_flash_div, to determine page mode display, gtl or not.

https://bugzilla.redhat.com/show_bug.cgi?id=1486699

https://bugzilla.redhat.com/show_bug.cgi?id=1486674

Screen shots prior to code fix showing dupe messages displayed, top and bottom of page:

bz1486699 dupe reset message top of page prior to code fix

bz1486699 dupe reset message bottom of page prior to code fix

Screen shots showing just one flash message displayed, at the top of page (2 parts):

bz1486699 dupe reset message top of page post code fix

bz1486699 dupe reset message bottom of page post code fix png

@@ -22,4 +22,5 @@
- if @politems
- @embedded = true
- @quadicon_no_url = true
= render :partial => "layouts/gtl"
- no_flash_div = true
= render :partial => "layouts/gtl", :locals => {:no_flash_div => no_flash_div}
Copy link
Member

Choose a reason for hiding this comment

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

Would the simpler = render :partial => "layouts/gtl", :locals => {:no_flash_div => true} work?

@GregP GregP force-pushed the dupe_msg_gtl_pages_reset branch from cceecaa to 0cbfd05 Compare October 19, 2017 20:53
@miq-bot
Copy link
Member

miq-bot commented Oct 19, 2017

Checked commit GregP@0cbfd05 with ruby 2.3.3, rubocop 0.47.1, and haml-lint 0.20.0
0 files checked, 0 offenses detected
Everything looks fine. ⭐

@GregP
Copy link
Contributor Author

GregP commented Oct 24, 2017

@h-kataria Please review.

@mzazrivec mzazrivec self-assigned this Oct 30, 2017
@mzazrivec mzazrivec merged commit dedb738 into ManageIQ:master Oct 30, 2017
@chessbyte chessbyte added this to the Sprint 72 Ending Oct 30, 2017 milestone Oct 30, 2017
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.

4 participants