An additional span inside the nodes toolbar, added by the i18n
FormattedMessage component, breaks the toolbar by changing the click
event target to the span element; because the span element doesn't
contain the "name" attribute needed to determine the appropriate action.
This patch adds a small method to lookup the closest name attribute
(either on the element or the parent elements), so both buttons with and
without a FormattedMessage of them will work.
Reviewed: https:/ /review. openstack. org/443139 /git.openstack. org/cgit/ openstack/ tripleo- ui/commit/ ?id=8d40ed773b0 8575a6d8345e116 049203e204fa43
Committed: https:/
Submitter: Jenkins
Branch: master
commit 8d40ed773b08575 a6d8345e1160492 03e204fa43
Author: Florian Fuchs <email address hidden>
Date: Wed Mar 8 15:03:38 2017 +0100
Fix nodes actions toolbar
An additional span inside the nodes toolbar, added by the i18n ssage component, breaks the toolbar by changing the click
FormattedMe
event target to the span element; because the span element doesn't
contain the "name" attribute needed to determine the appropriate action.
This patch adds a small method to lookup the closest name attribute
(either on the element or the parent elements), so both buttons with and
without a FormattedMessage of them will work.
Change-Id: I7c565da8bf2f50 40ff99b13f02cb0 a7f4c07637f
Closes-Bug: #1671100