diff --git a/.gitignore b/.gitignore
index b515354..8731139 100644
--- a/.gitignore
+++ b/.gitignore
@@ -18,6 +18,9 @@ bin/
!**/src/test/**/bin/
### IntelliJ IDEA ###
+*.png
+*.jpeg
+*.webp
.idea
*.iws
*.iml
diff --git a/frontend/spa-vue/src/models/Product.js b/frontend/spa-vue/src/models/Product.js
index 9a65fa9..2e825e4 100644
--- a/frontend/spa-vue/src/models/Product.js
+++ b/frontend/spa-vue/src/models/Product.js
@@ -4,6 +4,6 @@ export default class Product{
this.name = data?.name;
this.price = data?.price;
this.photo = data?.photo;
- this.category_id = data?.category_id;
+ this.categoryId = data?.categoryId;
}
}
\ No newline at end of file
diff --git a/frontend/spa-vue/src/pages/products.vue b/frontend/spa-vue/src/pages/products.vue
index 02a8ee5..f5a5a95 100644
--- a/frontend/spa-vue/src/pages/products.vue
+++ b/frontend/spa-vue/src/pages/products.vue
@@ -16,8 +16,8 @@
{{ prdct.name }} |
{{ prdct.price }} |
- {{ prdct.photo }} |
- {{ prdct.category_id }} |
+ |
+ {{ prdct && categories.find(ctgr => ctgr.id === prdct.categoryId).name }} |
|
@@ -53,7 +53,7 @@
- |