UX: fix past events bg color (#504)

This commit is contained in:
Renato Atilio 2023-12-12 20:31:25 -03:00 committed by GitHub
parent becfe9b2ad
commit b55e394ba8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -130,7 +130,7 @@ export default Component.extend({
let borderColor, textColor;
if (moment(ends_at || starts_at).isBefore(moment())) {
borderColor = textColor = backgroundColor;
backgroundColor = undefined;
backgroundColor = "unset";
}
this._calendar.addEvent({

View File

@ -220,7 +220,7 @@ function initializeDiscourseCalendar(api) {
let borderColor, textColor;
if (moment(ends_at || starts_at).isBefore(moment())) {
borderColor = textColor = backgroundColor;
backgroundColor = undefined;
backgroundColor = "unset";
}
fullCalendar.addEvent({