Cleanup kredits service
This commit is contained in:
@@ -24,10 +24,8 @@ export default Component.extend({
|
||||
this.reset();
|
||||
},
|
||||
|
||||
isValidAccount: computed('kredits.ethProvider', 'account', function() {
|
||||
// TODO: add proper address validation
|
||||
return this.account !== '';
|
||||
}),
|
||||
// TODO: add proper address validation
|
||||
isValidAccount: notEmpty('account'),
|
||||
isValidName: notEmpty('name'),
|
||||
isValidURL: notEmpty('url'),
|
||||
isValidGithubUID: notEmpty('github_uid'),
|
||||
|
||||
@@ -19,13 +19,13 @@ export default Component.extend({
|
||||
|
||||
contributors: [],
|
||||
|
||||
isValidRecipient: notEmpty('contributorId'),
|
||||
isValidContributor: notEmpty('contributorId'),
|
||||
isValidAmount: computed('amount', function() {
|
||||
return parseInt(this.amount, 10) > 0;
|
||||
}),
|
||||
isValidDescription: notEmpty('description'),
|
||||
isValidUrl: notEmpty('url'),
|
||||
isValid: and('isValidRecipient',
|
||||
isValid: and('isValidContributor',
|
||||
'isValidAmount',
|
||||
'isValidDescription'),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user