[calendar] Show repeatingCountTitle only if yearDiff > 0 (#3949)

This commit is contained in:
Jarno
2025-11-08 15:13:59 +02:00
committed by GitHub
parent ab5f79a1be
commit 3b79791a6b
2 changed files with 4 additions and 1 deletions

View File

@@ -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

View File

@@ -330,9 +330,11 @@ Module.register("calendar", {
const thisYear = eventStartDateMoment.year(),
yearDiff = thisYear - event.firstYear;
if (yearDiff > 0) {
repeatingCountTitle = `, ${yearDiff} ${repeatingCountTitle}`;
}
}
}
var transformedTitle = event.title;