Fix tooltip of commit select button (#26472)
Previously, the tooltip for this button was only shown after opening and closing it once because it was only set after the server response, now it shows before opening it.
This commit is contained in:
parent
7456573541
commit
56b6b2b88e
3 changed files with 5 additions and 3 deletions
|
@ -77,10 +77,13 @@ import {SvgIcon} from '../svg.js';
|
|||
export default {
|
||||
components: {SvgIcon},
|
||||
data: () => {
|
||||
const el = document.getElementById('diff-commit-select');
|
||||
return {
|
||||
menuVisible: false,
|
||||
isLoading: false,
|
||||
locale: {},
|
||||
locale: {
|
||||
filter_changes_by_commit: el.getAttribute('data-filter_changes_by_commit'),
|
||||
},
|
||||
commits: [],
|
||||
hoverActivated: false,
|
||||
lastReviewCommitSha: null
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue