Skip to content

Commit

Permalink
Update logic for coloring chapters' last action time based on request…
Browse files Browse the repository at this point in the history
… from Michelle

Tested by manually setting last event dates to be 29,30,58,59 days ago in local database and checking the color.
  • Loading branch information
alexsapps committed May 30, 2024
1 parent 368e5de commit bfb593c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/ChapterList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -871,10 +871,10 @@ export default Vue.extend({
if (time.isValid()) {
c = 'is-danger';
}
if (time.isAfter(dayjs().add(-2, 'month'))) {
if (time.isAfter(dayjs().add(-58, 'day'))) {

This comment has been minimized.

Copy link
@jakehobbs

jakehobbs Jun 1, 2024

Member

yuck forgot we were still using dayjs in this 🤣

c = 'is-warning';
}
if (time.isAfter(dayjs().add(-1, 'month'))) {
if (time.isAfter(dayjs().add(-29, 'day'))) {
c = 'is-success';
}
return c;
Expand Down

0 comments on commit bfb593c

Please sign in to comment.