From 36b92d97ca4dfba67b740ca8a549ea11d224928d Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Wed, 18 Sep 2019 09:34:11 +0200 Subject: [PATCH] Use configured IPFS gateway URL on contributor profile --- app/controllers/dashboard/contributors/show.js | 7 ++++++- app/templates/dashboard/contributors/show.hbs | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/app/controllers/dashboard/contributors/show.js b/app/controllers/dashboard/contributors/show.js index 4c9909e..ebd0b1e 100644 --- a/app/controllers/dashboard/contributors/show.js +++ b/app/controllers/dashboard/contributors/show.js @@ -1,5 +1,6 @@ import Controller from '@ember/controller'; import { computed } from '@ember/object'; +import config from 'kredits-web/config/environment'; export default Controller.extend({ @@ -7,6 +8,10 @@ export default Controller.extend({ if (this.model.isCore) return 'Core Contributor'; if (this.model.totalKreditsEarned <= 5000) return 'Newcomer'; return 'Contributor'; - }) + }), + + ipfsGatewayUrl: computed(function() { + return config.ipfs.gatewayUrl; + }).volatile() }); diff --git a/app/templates/dashboard/contributors/show.hbs b/app/templates/dashboard/contributors/show.hbs index 8005793..07fdad8 100644 --- a/app/templates/dashboard/contributors/show.hbs +++ b/app/templates/dashboard/contributors/show.hbs @@ -28,7 +28,7 @@

Inspect Ethereum transactions {{#if model.ipfsHash}} - Inspect IPFS profile + Inspect IPFS profile {{/if}} {{link-to "Edit profile" "contributors.edit" model class="button small"}}