Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
tempe-techie committed May 30, 2024
1 parent 5b3beb1 commit c990dc4
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 25 deletions.
2 changes: 1 addition & 1 deletion components/chat/ChatFeed.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
@processFileUrl="insertImage"
title="Upload image"
infoText="Upload an image."
storageType="ipfs"
storageType="imagekit"
:componentId="$.uid"
:maxFileSize="$config.fileUploadSizeLimit"
/>
Expand Down
12 changes: 0 additions & 12 deletions components/nft/collection/ChangeCollectionPreviewModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -92,18 +92,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 updateImage() {
this.waiting = true
Expand Down
2 changes: 1 addition & 1 deletion components/storage/FileUploadModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
<FileUploadInput
btnCls="btn btn-primary"
:maxFileSize="maxFileSize"
storageType="ipfs"
:storageType="storageType"
@processUploadedFileUrl="processUploadedFileUrl"
/>
</div>
Expand Down
12 changes: 1 addition & 11 deletions pages/nft/create.vue
Original file line number Diff line number Diff line change
Expand Up @@ -300,17 +300,7 @@ export default {
} else {
return false
}
},
parseImageLink() {
let parsedImage = this.cImage;
if (parsedImage && parsedImage.includes("ipfs://")) {
parsedImage = parsedImage.replace("ipfs://", this.$config.ipfsGateway);
}
return parsedImage;
}
}
},
methods: {
Expand Down

0 comments on commit c990dc4

Please sign in to comment.