From 399ee27af975ed71720bebb510e32798d3840a8d Mon Sep 17 00:00:00 2001 From: Michael Bumann Date: Sun, 15 Apr 2018 16:35:31 +0000 Subject: [PATCH] Revert "Adjust for new naming conventions" --- app/components/add-contributor/component.js | 8 ++++---- app/components/add-contributor/template.hbs | 6 +++--- app/components/contributor-list/template.hbs | 2 +- app/controllers/index.js | 6 ++++-- app/lib/kredits/contracts/contributor.js | 10 +++++++++- app/lib/kredits/contracts/operator.js | 10 +++++++++- app/models/contributor.js | 3 ++- app/models/proposal.js | 2 +- app/services/kredits.js | 5 +++++ app/templates/index.hbs | 2 +- 10 files changed, 39 insertions(+), 15 deletions(-) diff --git a/app/components/add-contributor/component.js b/app/components/add-contributor/component.js index 254ec95..13c83da 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: { - account: null, + address: null, name: null, kind: 'person', url: null, @@ -24,9 +24,9 @@ export default Component.extend({ this.reset(); }, - isValidAccount: computed('kredits.ethProvider', 'account', function() { + isValidAddress: computed('kredits.ethProvider', 'address', function() { // TODO: add proper address validation - return this.get('account') !== ''; + return this.get('address') !== ''; }), isValidName: isPresent('name'), isValidURL: isPresent('url'), @@ -34,7 +34,7 @@ export default Component.extend({ isValidGithubUsername: isPresent('github_username'), isValidWikiUsername: isPresent('wiki_username'), isValid: and( - 'isValidAccount', + 'isValidAddress', 'isValidName', 'isValidGithubUID' ), diff --git a/app/components/add-contributor/template.hbs b/app/components/add-contributor/template.hbs index c47fd92..ded7d47 100644 --- a/app/components/add-contributor/template.hbs +++ b/app/components/add-contributor/template.hbs @@ -9,11 +9,11 @@

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