Replace missed profileHash with ipfsHash

This commit is contained in:
2018-04-08 00:44:25 +02:00
parent 206c657b98
commit 21f187cac2
2 changed files with 13 additions and 6 deletions
+2 -2
View File
@@ -14,8 +14,8 @@
<td colspan="2">
<ul>
<li><a href="https://testnet.etherscan.io/address/{{contributor.address}}">Inspect Ethereum transactions</a></li>
{{#if contributor.profileHash}}
<li><a href="https://ipfs.io/ipfs/{{contributor.profileHash}}">Inspect IPFS profile</a></li>
{{#if contributor.ipfsHash}}
<li><a href="https://ipfs.io/ipfs/{{contributor.ipfsHash}}">Inspect IPFS profile</a></li>
{{/if}}
</ul>
{{#if contributor.showMetadata}}
+11 -4
View File
@@ -2,17 +2,24 @@ import computed from 'ember-computed';
import EmberObject from 'ember-object';
export default EmberObject.extend({
// Contract
id: null,
// TODO: Should we rename it to account like in the contract?
address: null,
name: null,
balance: 0,
isCore: false,
ipfsHash: null,
// IPFS
kind: null,
name: null,
url: null,
github_username: null,
github_uid: null,
wiki_username: null,
profileHash: null,
balance: 0,
isCore: false,
ipfsData: '',
// Deprecated
isCurrentUser: false,
avatarURL: computed('github_uid', function() {