diff --git a/src/components/CollectionList.vue b/src/components/CollectionList.vue index 0ba5ef7..a31152e 100644 --- a/src/components/CollectionList.vue +++ b/src/components/CollectionList.vue @@ -11,6 +11,7 @@ const props = defineProps<{ // Emits const emit = defineEmits<{ + 'create': [] 'select': [collection: CollectionObject] 'edit': [collection: CollectionObject] 'toggle-visibility': [collection: CollectionObject] @@ -42,6 +43,12 @@ const displayIcon = computed(() => { return 'mdi-folder' }) +const createLabel = computed(() => { + if (props.type === 'calendar') return 'New Calendar' + if (props.type === 'tasklist') return 'New Task List' + return 'New Collection' +}) + // Functions const onCollectionSelect = (collection: CollectionObject) => { console.log('[Chrono] - Collection selected', collection) @@ -60,9 +67,19 @@ const onToggleVisibility = (collection: CollectionObject) => {