From 7b5cea36134f7d03264b46e091fb5362ea2ffade Mon Sep 17 00:00:00 2001 From: bumi Date: Tue, 10 Apr 2018 18:46:54 +0200 Subject: [PATCH] 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, 15 insertions(+), 39 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' '')}}