From 118acc53427011c5cf763b906fbc79fd9d94248b Mon Sep 17 00:00:00 2001 From: Sebastian Krupinski Date: Tue, 3 Mar 2026 21:52:21 -0500 Subject: [PATCH] fix: content property Signed-off-by: Sebastian Krupinski --- src/components/CollectionList.vue | 4 ++-- src/stores/chronoStore.ts | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/CollectionList.vue b/src/components/CollectionList.vue index cec1810..0ba5ef7 100644 --- a/src/components/CollectionList.vue +++ b/src/components/CollectionList.vue @@ -22,9 +22,9 @@ const filteredCollections = computed(() => { return props.collections.filter(collection => { if (props.type === 'calendar') { - return collection.properties.contents?.event + return collection.properties.content?.includes('event') } else if (props.type === 'tasklist') { - return collection.properties.contents?.task + return collection.properties.content?.includes('task') } return true }) diff --git a/src/stores/chronoStore.ts b/src/stores/chronoStore.ts index 7802c7c..417da2d 100644 --- a/src/stores/chronoStore.ts +++ b/src/stores/chronoStore.ts @@ -68,11 +68,11 @@ export const useChronoStore = defineStore('chronoStore', () => { const entities = computed(() => entitiesStore.entities) const calendars = computed(() => { - return collections.value.filter(col => col.properties.contents?.event) + return collectionsStore.collections.filter(col => col.properties.content?.includes('event')) }) const taskLists = computed(() => { - return collections.value.filter(col => col.properties.contents?.task) + return collectionsStore.collections.filter(col => col.properties.content?.includes('task')) }) const events = computed(() => { @@ -146,7 +146,7 @@ export const useChronoStore = defineStore('chronoStore', () => { editingCollection.value = new CollectionObject() editingCollection.value.properties.fromJson({ ...editingCollection.value.properties.toJson(), - contents: { event: true }, + content: ['event'], }) collectionEditorMode.value = 'create' collectionEditorType.value = 'calendar' @@ -157,7 +157,7 @@ export const useChronoStore = defineStore('chronoStore', () => { editingCollection.value = new CollectionObject() editingCollection.value.properties.fromJson({ ...editingCollection.value.properties.toJson(), - contents: { task: true }, + content: ['task'], }) collectionEditorMode.value = 'create' collectionEditorType.value = 'tasklist' -- 2.39.5