@@ -37,8 +37,6 @@ import { mapState } from 'vuex'
3737import moment from ' @nextcloud/moment'
3838import Clock from ' vue-material-design-icons/Clock.vue'
3939import ClockOutline from ' vue-material-design-icons/ClockOutline.vue'
40- import CalendarAlert from ' vue-material-design-icons/CalendarAlert.vue'
41- import CalendarBlank from ' vue-material-design-icons/CalendarBlank.vue'
4240
4341const DueState = {
4442 Future: ' Future' ,
@@ -48,18 +46,16 @@ const DueState = {
4846}
4947export default {
5048 name: ' DueDate' ,
49+ components: {
50+ Clock,
51+ ClockOutline,
52+ },
5153 props: {
5254 card: {
5355 type: Object ,
5456 default: null ,
5557 },
5658 },
57- components: {
58- Clock,
59- ClockOutline,
60- CalendarAlert,
61- CalendarBlank,
62- },
6359 computed: {
6460 ... mapState ({
6561 compactMode : state => state .compactMode ,
@@ -73,13 +69,13 @@ export default {
7369 return DueState .Now
7470 }
7571 if (days === 1 ) {
76- return DueState .Overdue
72+ return DueState .Next
7773 }
7874
7975 return DueState .Future
8076 },
8177 overdue () {
82- this .dueState === DueState .Overdue
78+ return this .dueState === DueState .Overdue
8379 },
8480 relativeDate () {
8581 const diff = moment (this .$root .time ).diff (this .card .duedate , ' seconds' )
@@ -108,11 +104,11 @@ export default {
108104 flex-shrink : 1 ;
109105 z-index : 2 ;
110106
111- [data-due-state = " Overdue" ] & {
107+ [data-due-state = ' Overdue' ] & {
112108 color : var (--color-main-background );
113109 background-color : var (--color-error-text );
114110 }
115- [data-due-state = " Now" ] & {
111+ [data-due-state = ' Now' ] & {
116112 color : var (--color-main-background );
117113 background-color : var (--color-warning );
118114 }
0 commit comments