Made category label route to category page.
Build and Deploy Web App / build-and-deploy (push) Successful in 22s Details

This commit is contained in:
andrewlalis 2025-12-07 11:28:02 -05:00
parent e7ccd25549
commit 6e810997a3
1 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@ import { useRoute, useRouter } from 'vue-router'
import AppBadge from './common/AppBadge.vue' import AppBadge from './common/AppBadge.vue'
interface CategoryInfo { interface CategoryInfo {
id: number
name: string name: string
color: string color: string
} }
@ -14,7 +15,7 @@ const props = defineProps<{ category: CategoryInfo; clickable?: boolean }>()
function onClicked() { function onClicked() {
if (props.clickable) { if (props.clickable) {
router.push(`/profiles/${getSelectedProfile(route)}/categories`) router.push(`/profiles/${getSelectedProfile(route)}/categories/${props.category?.id}`)
} }
} }
</script> </script>