mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-28 01:26:29 -04:00
Event class bugfix (#3218)
Hello, Bugfix. :-) The "break" line did not allow the "eventClass" option to execute.
This commit is contained in:
parent
66b29ec26e
commit
b067711ede
2 changed files with 2 additions and 1 deletions
|
@ -17,6 +17,8 @@ _This release is scheduled to be released on 2024-01-01._
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
|
- Fix the option eventClass on customEvents.
|
||||||
|
|
||||||
## [2.25.0] - 2023-10-01
|
## [2.25.0] - 2023-10-01
|
||||||
|
|
||||||
Thanks to: @bugsounet, @dgoth, @dependabot, @kenzal, @Knapoc, @KristjanESPERANTO, @martingron, @NolanKingdon, @Paranoid93, @TeddyStarinvest and @Ybbet.
|
Thanks to: @bugsounet, @dgoth, @dependabot, @kenzal, @Knapoc, @KristjanESPERANTO, @martingron, @NolanKingdon, @Paranoid93, @TeddyStarinvest and @Ybbet.
|
||||||
|
|
|
@ -335,7 +335,6 @@ Module.register("calendar", {
|
||||||
if (this.config.displaySymbol && this.config.coloredSymbol) {
|
if (this.config.displaySymbol && this.config.coloredSymbol) {
|
||||||
symbolWrapper.style.cssText = `color:${this.config.customEvents[ev].color}`;
|
symbolWrapper.style.cssText = `color:${this.config.customEvents[ev].color}`;
|
||||||
}
|
}
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
if (typeof this.config.customEvents[ev].eventClass !== "undefined" && this.config.customEvents[ev].eventClass !== "") {
|
if (typeof this.config.customEvents[ev].eventClass !== "undefined" && this.config.customEvents[ev].eventClass !== "") {
|
||||||
eventWrapper.className += ` ${this.config.customEvents[ev].eventClass}`;
|
eventWrapper.className += ` ${this.config.customEvents[ev].eventClass}`;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue