diff --git a/src/main/kotlin/no/java/conf/model/search/SessionResponse.kt b/src/main/kotlin/no/java/conf/model/search/SessionResponse.kt index c137056..1ed7a88 100644 --- a/src/main/kotlin/no/java/conf/model/search/SessionResponse.kt +++ b/src/main/kotlin/no/java/conf/model/search/SessionResponse.kt @@ -4,6 +4,7 @@ import kotlinx.serialization.Serializable @Serializable data class SessionResponse( + val id: String, val title: String, val video: String?, val year: Int, diff --git a/web/src/components/AggregateCard.vue b/web/src/components/AggregateCard.vue index 1916b43..6e5ccdc 100644 --- a/web/src/components/AggregateCard.vue +++ b/web/src/components/AggregateCard.vue @@ -4,16 +4,22 @@ import type {AggregateCardRow} from "@/types/helpers"; const props = defineProps<{ title: string aggregate: AggregateCardRow[] + filter?: string }>() const emit = defineEmits<{ filter: [value: string] + clear: [] }>() const performFilter = (value: string) => { emit('filter', value) } +const clearFilter = () => { + emit('clear') +} +