From b1e0eecd956e9cfdf3b908b56e3785f4f3bccb09 Mon Sep 17 00:00:00 2001 From: Tempe Techie <95053628+tempe-techie@users.noreply.github.com> Date: Thu, 30 May 2024 20:39:10 +0200 Subject: [PATCH] use Image component --- .../collection/AddImageToCollectionModal.vue | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/components/nft/collection/AddImageToCollectionModal.vue b/components/nft/collection/AddImageToCollectionModal.vue index a3c7cc0..3e37d58 100644 --- a/components/nft/collection/AddImageToCollectionModal.vue +++ b/components/nft/collection/AddImageToCollectionModal.vue @@ -29,7 +29,7 @@
- +
If image didn't appear above, then something is wrong with the link you added (wait until the loading indicator completes).
@@ -52,13 +52,14 @@ import { ethers } from 'ethers'; import { useEthers } from 'vue-dapp'; import { useToast } from "vue-toastification/dist/index.mjs"; +import Image from '~/components/Image.vue'; import WaitingToast from "~/components/WaitingToast"; import FileUploadInput from '~/components/storage/FileUploadInput.vue'; export default { name: 'AddImageToCollectionModal', props: ["cAddress", "mdAddress"], - components: { FileUploadInput }, + components: { FileUploadInput, Image }, data() { return { @@ -72,18 +73,6 @@ export default { this.componentId = this.$.uid; }, - computed: { - parseImageLink() { - let parsedImage = this.imageUrl; - - if (parsedImage && parsedImage.includes("ipfs://")) { - parsedImage = parsedImage.replace("ipfs://", this.$config.ipfsGateway); - } - - return parsedImage; - } - }, - methods: { async addNewImage() { this.waiting = true;