diff --git a/src/components/AppNavigation/CalendarList.vue b/src/components/AppNavigation/CalendarList.vue
index d88311a78e..7e32e374dc 100644
--- a/src/components/AppNavigation/CalendarList.vue
+++ b/src/components/AppNavigation/CalendarList.vue
@@ -77,6 +77,30 @@
:calendar="calendar" />
+
+
+
+
+
+
+
+
+
+
+
+
@@ -129,12 +153,13 @@ export default {
return {
calendars: [],
/**
- * Calendars sorted by personal, shared, and deck
+ * Calendars sorted by personal, shared, deck, and tasks
*/
sortedCalendars: {
personal: [],
shared: [],
deck: [],
+ tasks: [],
},
disableDragging: false,
@@ -182,6 +207,7 @@ export default {
personal: [],
shared: [],
deck: [],
+ tasks: [],
}
this.calendars.forEach((calendar) => {
@@ -195,6 +221,11 @@ export default {
return
}
+ if (calendar.supportsTasks && !calendar.supportsEvents && !calendar.supportsJournals) {
+ this.sortedCalendars.tasks.push(calendar)
+ return
+ }
+
this.sortedCalendars.personal.push(calendar)
})
},
@@ -209,6 +240,7 @@ export default {
...this.sortedCalendars.personal,
...this.sortedCalendars.shared,
...this.sortedCalendars.deck,
+ ...this.sortedCalendars.tasks,
]
const newOrder = currentCalendars.reduce((newOrderObj, currentItem, currentIndex) => {
newOrderObj[currentItem.id] = currentIndex