UX: fix past events bg color (#504)
This commit is contained in:
parent
becfe9b2ad
commit
b55e394ba8
|
|
@ -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({
|
||||
|
|
|
|||
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Reference in New Issue