toggl / track-extension

Toggl Track browser extension for Chrome and Firefox
http://toggl.github.io/track-extension
Apache License 2.0
1.1k stars 568 forks source link

Extension not showing up on Outlook calendar #1860

Open zdericnina opened 4 years ago

zdericnina commented 4 years ago

Relevant integration (if any):

outlook.live.com outlook.office.com

🐛 Describe the bug

Toggl Track button isn't showing up on the calendar events (as they used to)

Expected behaviour

Start Timer button should be shown on the calendar event in the same way as it does appear on Google calendar. The button does appear next to email subject but not on the calendar.

Steps to reproduce

Steps to reproduce the behaviour:

  1. Go to Outlook
  2. Set up an event
  3. Click on it, no button
Screenshot 2020-10-13 at 13 49 37

Other details or context

Case reference

edtamayo commented 3 years ago

Case Refence This user has TogglButton/1.70.1

basvandrongelen commented 1 year ago

This is still not working, any idea on when this will be picked up?

basvandrongelen commented 1 year ago

Fixed it for myself, following the https://github.com/toggl/track-extension/blob/master/docs/CONTRIBUTING.md styling isn't great but it is functioning, which is the most important for me.

2022-11-15_09h51_03 2022-11-15_09h51_37

Will see if I can find time to fix it properly and then add a PR.

code:

// Calendar events togglbutton.render( '[data-app-section="CalendarItemPeek"]:not(.toggl)', { observe: true }, (elem) => { const link = togglbutton.createTimerLink({ className: "outlook", description: () => document.querySelector('span[aria-label="Title"]').textContent }); elem.appendChild(link); } );