Skip to content

Commit

Permalink
fix(linear): add project name to list view linear
Browse files Browse the repository at this point in the history
  • Loading branch information
with-shrey committed Jan 8, 2025
1 parent ad3d4ea commit 62aac27
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/content/linear.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,16 @@ togglbutton.render(
const titleElem = idElem.parentElement.nextSibling
const title = titleElem ? titleElem.textContent : ''

const project = elem
.querySelector('svg[aria-label="Project"]')
?.closest('div')
?.nextElementSibling?.textContent?.trim()

const link = togglbutton.createTimerLink({
description: title,
className: 'linear-table',
buttonType: 'minimal', // button type, if skipped will render full size
projectName: project,
})
const existingTogglButton = elem.querySelector('.toggl-button')
if (existingTogglButton) {
Expand Down

0 comments on commit 62aac27

Please sign in to comment.