mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-12-12 01:42:19 +00:00
[calendar] Show repeatingCountTitle only if yearDiff > 0 (#3949)
This commit is contained in:
@@ -29,6 +29,7 @@ planned for 2026-01-01
|
|||||||
- [tests] migrate from `jest` to `vitest` (#3940, #3941)
|
- [tests] migrate from `jest` to `vitest` (#3940, #3941)
|
||||||
- [ci] Add concurrency to automated tests workflow to cancel outdated runs (#3943)
|
- [ci] Add concurrency to automated tests workflow to cancel outdated runs (#3943)
|
||||||
- [tests] replace `node-libgpiod` with `serialport` in electron-rebuild workflow (#3945)
|
- [tests] replace `node-libgpiod` with `serialport` in electron-rebuild workflow (#3945)
|
||||||
|
- [calendar] hide repeatingCountTitle if the event count is zero (#3949)
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
|
|||||||
@@ -330,9 +330,11 @@ Module.register("calendar", {
|
|||||||
const thisYear = eventStartDateMoment.year(),
|
const thisYear = eventStartDateMoment.year(),
|
||||||
yearDiff = thisYear - event.firstYear;
|
yearDiff = thisYear - event.firstYear;
|
||||||
|
|
||||||
|
if (yearDiff > 0) {
|
||||||
repeatingCountTitle = `, ${yearDiff} ${repeatingCountTitle}`;
|
repeatingCountTitle = `, ${yearDiff} ${repeatingCountTitle}`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
var transformedTitle = event.title;
|
var transformedTitle = event.title;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user