mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 12:03:45 +08:00
FIX: correctly pass down calendar options (#26370)
Prior to this fix the options were not passed down when the user had no default calendar. No test as it's mostly an interaction between discourse-calendar and core which is hard to test.
This commit is contained in:
parent
9c9526f0a8
commit
bddc41b7ad
|
@ -4,7 +4,7 @@ import { action } from "@ember/object";
|
|||
import { service } from "@ember/service";
|
||||
import { downloadGoogle, downloadIcs } from "discourse/lib/download-calendar";
|
||||
|
||||
export default class downloadCalendar extends Component {
|
||||
export default class DownloadCalendar extends Component {
|
||||
@service currentUser;
|
||||
|
||||
@tracked selectedCalendar = "ics";
|
||||
|
@ -23,13 +23,19 @@ export default class downloadCalendar extends Component {
|
|||
downloadIcs(
|
||||
this.args.model.calendar.title,
|
||||
this.args.model.calendar.dates,
|
||||
this.args.model.calendar.recurrenceRule
|
||||
{
|
||||
recurrenceRule: this.args.model.calendar.recurrenceRule,
|
||||
}
|
||||
);
|
||||
} else {
|
||||
downloadGoogle(
|
||||
this.args.model.calendar.title,
|
||||
this.args.model.calendar.dates,
|
||||
this.args.model.calendar.recurrenceRule
|
||||
{
|
||||
recurrenceRule: this.args.model.calendar.recurrenceRule,
|
||||
location: this.args.model.calendar.location,
|
||||
details: this.args.model.calendar.details,
|
||||
}
|
||||
);
|
||||
}
|
||||
this.args.closeModal();
|
||||
|
|
Loading…
Reference in New Issue
Block a user