Use configured IPFS gateway URL on contributor profile

This commit is contained in:
2019-09-18 09:34:11 +02:00
parent f272bcfcbc
commit 36b92d97ca
2 changed files with 7 additions and 2 deletions
@@ -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()
});