small fixes

This commit is contained in:
vabene1111
2025-06-19 17:36:39 +02:00
parent d8f444e596
commit 5d65c76686
4 changed files with 13 additions and 11 deletions

View File

@@ -1,6 +1,6 @@
<template>
<v-col :cols="props.cols" :md="props.md" :lg="props.lg">
<v-card :prepend-icon="props.prependIcon" :title="props.title" :subtitle="props.subtitle" variant="outlined" elevation="1"
<v-card :prepend-icon="props.prependIcon" :title="props.title" :subtitle="props.subtitle"
:to="props.to" :link="isLink" :href="props.href"
append-icon="fa-solid fa-arrow-right">
</v-card>
@@ -28,7 +28,7 @@ const props = defineProps({
const isLink = computed(() => {
return props.href != '' && props.to == undefined
return props.href != '' || props.to != undefined
})
</script>

View File

@@ -1,6 +1,6 @@
<template>
<v-col cols="12" md="6" lg="4">
<v-card :prepend-icon="genericModel.model.icon" :title="$t(genericModel.model.localizationKey)" :subtitle="$t(genericModel.model.localizationKeyDescription)" variant="outlined" elevation="1"
<v-card :prepend-icon="genericModel.model.icon" :title="$t(genericModel.model.localizationKey)" :subtitle="$t(genericModel.model.localizationKeyDescription)"
:to="{name: 'ModelListPage', params: {model: genericModel.model.name}}"
append-icon="fa-solid fa-arrow-right">
</v-card>