-
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
Add to providers for toolbar and use it to resolve promise from toolbarClick #3351
Conversation
Checked commit karelhala@74d1445 with ruby 2.3.3, rubocop 0.52.0, haml-lint 0.20.0, and yamllint 1.10.0 |
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.
Makes sense, |
@karelhala Please add BZ link. |
@simaishi I don't think this has BZ. |
@karelhala Backport to z-stream requires a BZ! |
@simaishi oh I see, the problem is that #3192 fixed BZ, but introduced bug on some screens and this PR fixes that bug. So I guess linking https://bugzilla.redhat.com/show_bug.cgi?id=1530939 might be ok. |
@karelhala 5.9 clone of that BZ (https://bugzilla.redhat.com/show_bug.cgi?id=1533234) is already closed, so that can't be reused... Can you please create a new BZ for this PR? |
Backport together with #3532 please. |
@simaishi sorry for the long delay, I thought this was resolved, but looks like we need to backport this to gaprindashvili as well, here is the coresponding BZ - https://bugzilla.redhat.com/show_bug.cgi?id=1596172 |
Fixes #3348
When clicking on toolbar items which does not return promise UI console would throw error which was silenced with reload of page. This PR wrap return object in
$q.resolve()
which works for checking if the return value ofmiqToolbarOnClick
is really promise like object. If not,TOOLBAR_CLICK_FINISH
is still sent from toolbarController (it will be sent emediately no need to wait for promise reolve).UI changes
none
BZ
https://bugzilla.redhat.com/show_bug.cgi?id=1530939