Skip to content

Commit

Permalink
fix(jira): Fix button not showing up
Browse files Browse the repository at this point in the history
Closes #2243
  • Loading branch information
Alissonsz committed Oct 3, 2023
1 parent 1e28dcd commit 94ce243
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/content/atlassian.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ togglbutton.render(
'#jira-issue-header:not(.toggl)',
{ observe: true },
function (elem) {
const issueWrapper = elem.querySelector('[data-test-id="issue.views.issue-base.foundation.breadcrumbs.breadcrumb-current-issue-container"]');
const issueWrapper = elem.querySelector('[data-testid="issue.views.issue-base.foundation.breadcrumbs.breadcrumb-current-issue-container"]');
let issueNumberElement;
let container;

Expand Down Expand Up @@ -93,7 +93,7 @@ const getDescription = (issueNumberElement) => () => {
}
}

const titleElement = document.querySelector('h1[data-test-id="issue.views.issue-base.foundation.summary.heading"]');
const titleElement = document.querySelector('h1[data-testid="issue.views.issue-base.foundation.summary.heading"]');
if (titleElement) {
if (description) description += ' ';
description += titleElement.textContent.trim();
Expand Down

0 comments on commit 94ce243

Please sign in to comment.