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
Display error message correctly that is returned from model. #1115
Conversation
Display correct flash message when there is an error deleting Catalog Item https://bugzilla.redhat.com/show_bug.cgi?id=1443120
{:record => ui_lookup(:table => "service_template")}) if @flash_array.nil? | ||
self.x_node = "root" | ||
if @flash_array.nil? | ||
add_flash(_("The selected %{record} was deleted") % |
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.
I know this has been there before, but for the sake of translators and nicer translations, we'd like
to get rid of calling ui_lookup()
on a static string. So I'd suggest to change the above string to:
"The selected Catalog Item was deleted"
@mzazrivec addressed feedback. |
Checked commits h-kataria/manageiq-ui-classic@78451fe~...caccd80 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
👍 LGTM - once green |
JS errors are unrelated to this PR as there are no JS changes, merging. |
Display error message correctly that is returned from model. (cherry picked from commit a0d684c) https://bugzilla.redhat.com/show_bug.cgi?id=1445108
Fine backport details:
|
Display correct flash message when there is an error deleting Catalog Item
https://bugzilla.redhat.com/show_bug.cgi?id=1443120
@syncrou please review/test