Add missing tooltip to Apply suggestion button
Summary
In !48597 (merged) we added the ability to apply a suggestion with a custom commit message, but the tooltip got removed in the process.
The tooltip had an explanation when the button was disabled, and the explanation varied depending on the case. The tooltip explanations were implemented in #219455 (closed) (see related MRs in that issue).
Steps to reproduce
- Add a suggestion to an MR.
- Change the line on which the suggestion was made, so that it conflicts with the suggested change.
- The Apply suggestion button should now be greyed out.
- Hover over the Apply Suggestion button, notice that there's no tooltip explaining why the suggestion cannot be applied.
Example project
jerasmus/jerasmus-test-project!30 (comment 524050314)
What is the current bug behavior?
When hovering over the Apply suggestion button in its disabled state, there is no tooltip explaining why the button is disabled (why the suggestion cannot be applied).
What is the expected correct behavior?
When hovering over the Apply suggestion button in its disabled state, there should be tooltip explaining why the button is disabled (why the suggestion cannot be applied).
Relevant logs and/or screenshots
Possible fixes
Re-add v-gl-tooltip.viewport="tooltipMessage"
to the button.