Extract clearFilters function for better maintainability

Co-authored-by: ArthurDanjou <29738535+ArthurDanjou@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-12-23 23:32:49 +00:00
parent a1dbcdce90
commit 38bf904902

View File

@@ -52,6 +52,11 @@ function toggleTag(tag: string) {
selectedTags.value.push(tag)
}
}
function clearFilters() {
selectedStatus.value = null
selectedTags.value = []
}
</script>
<template>
@@ -208,7 +213,7 @@ function toggleTag(tag: string) {
</p>
<UButton
class="mt-4"
@click="selectedStatus = null; selectedTags = []"
@click="clearFilters"
>
Clear Filters
</UButton>