From f0f82a96fbe393f60b2fa248f3a249347c3c4317 Mon Sep 17 00:00:00 2001 From: bumi Date: Tue, 17 Apr 2018 11:43:44 +0200 Subject: [PATCH] Adjust for latest naming conventions expept the renaming of ipfsHash to hashDigest all are already reflected in the contracts --- app/components/add-contributor/component.js | 8 ++++---- app/components/add-contributor/template.hbs | 6 +++--- app/components/contributor-list/template.hbs | 2 +- app/lib/kredits/contracts/contributor.js | 9 +++------ app/lib/kredits/contracts/operator.js | 11 ++++------- app/lib/kredits/utils/ipfs.js | 9 ++++++--- app/models/contributor.js | 3 +-- app/templates/index.hbs | 2 +- 8 files changed, 23 insertions(+), 27 deletions(-) diff --git a/app/components/add-contributor/component.js b/app/components/add-contributor/component.js index 13c83da..254ec95 100644 --- a/app/components/add-contributor/component.js +++ b/app/components/add-contributor/component.js @@ -9,7 +9,7 @@ export default Component.extend({ // Default attributes used by reset attributes: { - address: null, + account: null, name: null, kind: 'person', url: null, @@ -24,9 +24,9 @@ export default Component.extend({ this.reset(); }, - isValidAddress: computed('kredits.ethProvider', 'address', function() { + isValidAccount: computed('kredits.ethProvider', 'account', function() { // TODO: add proper address validation - return this.get('address') !== ''; + return this.get('account') !== ''; }), isValidName: isPresent('name'), isValidURL: isPresent('url'), @@ -34,7 +34,7 @@ export default Component.extend({ isValidGithubUsername: isPresent('github_username'), isValidWikiUsername: isPresent('wiki_username'), isValid: and( - 'isValidAddress', + 'isValidAccount', 'isValidName', 'isValidGithubUID' ), diff --git a/app/components/add-contributor/template.hbs b/app/components/add-contributor/template.hbs index ded7d47..c47fd92 100644 --- a/app/components/add-contributor/template.hbs +++ b/app/components/add-contributor/template.hbs @@ -9,11 +9,11 @@

- {{input name="address" + {{input name="account" type="text" placeholder="0xF18E631Ea191aE4ebE70046Fcb01a436554421BA4" - value=address - class=(if isValidAddress 'valid' '')}} + value=account + class=(if isValidAccount 'valid' '')}}