Skip to content

Commit

Permalink
feat: remove custom gateway selection in files tab
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianRuen committed Jul 8, 2024
1 parent 39bcd8a commit cc4f311
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/views/GatewayTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ export default {
try {
const publicLink = this.ipfsGateway.link + '/' + this.fileMetadata.result.file.cid
await navigator.clipboard.writeText(publicLink)
showSuccess(t('cidgravitygateway', 'Public link copied'))
showSuccess(t('cidgravitygateway', 'Public link copied link copied'))
} catch (error) {
showError(t('cidgravitygateway', 'Unable to copy the public link'))
console.error(error)
Expand Down Expand Up @@ -242,6 +242,12 @@ export default {
label: parsedUrl.hostname,
link: this.externalStorageConfiguration.default_ipfs_gateway,
}
} else {
this.ipfsGateway = {
id: 'custom',
label: t('cidgravitygateway', 'Custom gateway'),
link: this.externalStorageConfiguration.default_ipfs_gateway,
}
}
},
loadFileMetadata() {
Expand Down

0 comments on commit cc4f311

Please sign in to comment.