Made category label route to category page.
Build and Deploy Web App / build-and-deploy (push) Successful in 22s
Details
Build and Deploy Web App / build-and-deploy (push) Successful in 22s
Details
This commit is contained in:
parent
e7ccd25549
commit
6e810997a3
|
|
@ -4,6 +4,7 @@ import { useRoute, useRouter } from 'vue-router'
|
|||
import AppBadge from './common/AppBadge.vue'
|
||||
|
||||
interface CategoryInfo {
|
||||
id: number
|
||||
name: string
|
||||
color: string
|
||||
}
|
||||
|
|
@ -14,7 +15,7 @@ const props = defineProps<{ category: CategoryInfo; clickable?: boolean }>()
|
|||
|
||||
function onClicked() {
|
||||
if (props.clickable) {
|
||||
router.push(`/profiles/${getSelectedProfile(route)}/categories`)
|
||||
router.push(`/profiles/${getSelectedProfile(route)}/categories/${props.category?.id}`)
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Reference in New Issue