Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions MMM-GoogleCalendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ Module.register("MMM-GoogleCalendar", {
}
symbols.forEach((s, index) => {
const symbol = document.createElement("span");
symbol.className = "fa fa-fw fa-" + s;
symbol.className = this.symbolClassForCalendar(event.calendarID) + s;
if (index > 0) {
symbol.style.paddingLeft = "5px";
}
Expand Down Expand Up @@ -1069,8 +1069,8 @@ Module.register("MMM-GoogleCalendar", {
const eventList = [];
for (const calendarID in this.calendarData) {
for (const ev of this.calendarData[calendarID]) {
const event = Object.assign({}, ev);
event.symbol = this.symbolsForEvent(event);
const event = Object.assign({calendarID:calendarID}, ev);
event.symbol = (this.symbolsForEvent(event) || []).map(s => this.symbolClassForCalendar(calendarID) + s);
event.calendarName = this.calendarNameForCalendar(calendarID);
event.color = this.colorForCalendar(calendarID);
delete event.calendarID;
Expand Down