Skip to content

Commit

Permalink
feat: Added options for Outlook, Yahoo to add to calendar
Browse files Browse the repository at this point in the history
  • Loading branch information
Suneet Srivastava committed Nov 11, 2020
1 parent 007805a commit 8eb54b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/components/public/add-to-calender.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default class AddToCalender extends Component<Args> {
const { event } = this.args;
const startTime = this.startsAt.utc().format('YYYY[-]MM[-]DDTHH[:]mm[:]SS[Z]');
const endTime = this.endsAt.utc().format('YYYY[-]MM[-]DDTHH[:]mm[:]SS[Z]');
return `https://outlook.live.com/calendar/0/deeplink/compose?path=/calendar/action/compose&rru=addevent&subject=${event.name}&startdt=${startTime}&enddt=${endTime}&body=${event.description}&location=${this.args.location}`;
return `https://outlook.live.com/calendar/0/deeplink/compose?subject=${event.name}&startdt=${startTime}&enddt=${endTime}&body=${(event.description).substring(0, 1800)}&location=${this.args.location}`;
}

get iCalUrl(): string {
Expand All @@ -58,7 +58,7 @@ export default class AddToCalender extends Component<Args> {
}

get calendarUrls(): { name: string; url: string; }[] {
return [{ name: 'Google Calendar', url: this.googleUrl }, { name: 'iCal', url: this.iCalUrl }];
return [{ name: 'Google Calendar', url: this.googleUrl }, { name: 'iCal', url: this.iCalUrl }, { name: 'Yahoo', url: this.yahooUrl }, { name: 'Outlook', url: this.outlookUrl }];
}

}

0 comments on commit 8eb54b4

Please sign in to comment.