mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-28 20:22:53 +00:00
Merge pull request #934 from eouia/develop
add symbol and color on broadcasted events
This commit is contained in:
commit
d7fe36de71
@ -6,6 +6,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
### Added
|
### Added
|
||||||
|
- Add symbol and color properties of event when `CALENDAR_EVENTS` notification is broadcasted from `default/calendar` module.
|
||||||
### Updated
|
### Updated
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
|
@ -522,6 +522,8 @@ Module.register("calendar", {
|
|||||||
var calendar = this.calendarData[url];
|
var calendar = this.calendarData[url];
|
||||||
for (var e in calendar) {
|
for (var e in calendar) {
|
||||||
var event = cloneObject(calendar[e]);
|
var event = cloneObject(calendar[e]);
|
||||||
|
event.symbol = this.symbolsForUrl(url);
|
||||||
|
event.color = this.colorForUrl(url);
|
||||||
delete event.url;
|
delete event.url;
|
||||||
eventList.push(event);
|
eventList.push(event);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user