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)
|
||||
- [ci] Add concurrency to automated tests workflow to cancel outdated runs (#3943)
|
||||
- [tests] replace `node-libgpiod` with `serialport` in electron-rebuild workflow (#3945)
|
||||
- [calendar] hide repeatingCountTitle if the event count is zero (#3949)
|
||||
|
||||
### Fixed
|
||||
|
||||
|
||||
@@ -330,7 +330,9 @@ Module.register("calendar", {
|
||||
const thisYear = eventStartDateMoment.year(),
|
||||
yearDiff = thisYear - event.firstYear;
|
||||
|
||||
repeatingCountTitle = `, ${yearDiff} ${repeatingCountTitle}`;
|
||||
if (yearDiff > 0) {
|
||||
repeatingCountTitle = `, ${yearDiff} ${repeatingCountTitle}`;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user