Fix ESLint errors
This commit is contained in:
+4
-2
@@ -25,8 +25,10 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
'ember/avoid-leaking-state-in-ember-objects': 'warn',
|
'ember/avoid-leaking-state-in-ember-objects': 'warn',
|
||||||
'no-console': 'off'
|
'no-console': 'off',
|
||||||
'ember/no-jquery': 'error'
|
'ember/no-jquery': 'error',
|
||||||
|
'ember/require-computed-property-dependencies': 'warn',
|
||||||
|
'ember/no-observers': 'off'
|
||||||
},
|
},
|
||||||
overrides: [
|
overrides: [
|
||||||
// node files
|
// node files
|
||||||
|
|||||||
@@ -24,6 +24,9 @@ export default Component.extend({
|
|||||||
|
|
||||||
if (github_uid) {
|
if (github_uid) {
|
||||||
return `https://avatars2.githubusercontent.com/u/${github_uid}?v=3&s=${SIZES[this.size]}`;
|
return `https://avatars2.githubusercontent.com/u/${github_uid}?v=3&s=${SIZES[this.size]}`;
|
||||||
|
} else {
|
||||||
|
// TODO use custom avatar
|
||||||
|
return '';
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -50,9 +50,7 @@ export default Helper.extend({
|
|||||||
},
|
},
|
||||||
|
|
||||||
triggerRecompute () {
|
triggerRecompute () {
|
||||||
once(this, function () {
|
once(this, this.recompute);
|
||||||
this.recompute();
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -251,12 +251,12 @@ export default Service.extend({
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
getCurrentUser: computed('kredits.provider', function() {
|
getCurrentUser: computed('kredits.provider', 'currentUserAccounts.[]', function() {
|
||||||
if (isEmpty(this.currentUserAccounts)) {
|
if (isEmpty(this.currentUserAccounts)) {
|
||||||
return RSVP.resolve();
|
return RSVP.resolve();
|
||||||
}
|
}
|
||||||
return this.kredits.Contributor
|
return this.kredits.Contributor
|
||||||
.functions.getContributorIdByAddress(this.get('currentUserAccounts.firstObject'))
|
.functions.getContributorIdByAddress(this.currentUserAccounts.firstObject)
|
||||||
.then((id) => {
|
.then((id) => {
|
||||||
// check if the user is a contributor or not
|
// check if the user is a contributor or not
|
||||||
if (id === 0) {
|
if (id === 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user