CategoryStore, API calls

This commit is contained in:
2024-09-18 16:21:07 +02:00
parent 9ee344f45f
commit 7b245da959
11 changed files with 83 additions and 52 deletions

View File

@@ -1,15 +1,11 @@
<script setup lang="ts">
import { CategoryModel } from '@/data/models/categoryModel';
import { ProductModel } from '@/data/models/productModel';
import { ProductWithCategoryModel } from '@/data/models/productWithCategoryModel';
defineProps({
product: {
required: true,
type: ProductModel
},
// category: {
// type: CategoryModel
// },
type: ProductWithCategoryModel
}
})
</script>
@@ -25,9 +21,12 @@ defineProps({
{{ product.name }}
</v-card-title>
<!-- todo <v-card-subtitle class="mb-2">
<div><v-icon :icon="category.icon" /> {{ category.name }}</div>
</v-card-subtitle> -->
<v-card-subtitle class="mb-2">
<div>
<v-icon :icon="product.category.icon" />
{{ product.category.name }}
</div>
</v-card-subtitle>
</v-img>
<v-card-text>