diff --git a/src/content/gitlab.js b/src/content/gitlab.js index 9a7f62afd..36d23d4b6 100644 --- a/src/content/gitlab.js +++ b/src/content/gitlab.js @@ -1,5 +1,6 @@ 'use strict'; +// Render on issue page togglbutton.render( '.issue-details .detail-page-description:not(.toggl)', { observe: true }, @@ -10,10 +11,11 @@ togglbutton.render( const description = [prefix, getTitle(elem)].filter(Boolean).join(' '); insertButton($('.detail-page-header-actions'), description, true); - insertButton($('.time_tracker'), description); + insertButton($('.time-tracker'), description); } ); +// Render on merge request page togglbutton.render( '.merge-request > .detail-page-header:not(.toggl)', { observe: true }, @@ -24,7 +26,7 @@ togglbutton.render( const description = [prefix, getTitle(elem)].filter(Boolean).join(' '); insertButton($('.detail-page-header-actions'), description, true); - insertButton($('.time_tracker'), description); + insertButton($('.time-tracker'), description); } );