From 4060a91d180f4fdef690d9f540d8bdd61ba33f9f Mon Sep 17 00:00:00 2001
From: "Adam T. Carpenter"
Date: Mon, 16 Nov 2020 21:41:23 -0500
Subject: added thumbnail to product edit card
---
.../src/components/admin/ProductEditCard.vue | 22 +++++++++++++++++++---
1 file changed, 19 insertions(+), 3 deletions(-)
(limited to 'iridescence')
diff --git a/iridescence/src/components/admin/ProductEditCard.vue b/iridescence/src/components/admin/ProductEditCard.vue
index 2927b42..f8895aa 100644
--- a/iridescence/src/components/admin/ProductEditCard.vue
+++ b/iridescence/src/components/admin/ProductEditCard.vue
@@ -6,9 +6,14 @@
{{ old.id }}: {{ old.name }}
+
-
@@ -147,6 +160,9 @@ export default {
};
},
computed: {
+ thumbnail: function() {
+ return process.env.VUE_APP_IMAGE_ROOT + "/" + this.old.photo_thumbnail;
+ },
old: function() {
return this.$store.getters.products.find(p => p.id == this.oldid) || {};
},
--
cgit v1.2.3