Upgrade Ember and deps to 3.18/Octane #186

Merged
raucao merged 15 commits from chore/upgrade_ember_and_deps into master 2020-05-11 11:18:59 +00:00
4 changed files with 10 additions and 7 deletions
Showing only changes of commit 12df28f7fd - Show all commits
+4 -2
View File
@@ -25,8 +25,10 @@ module.exports = {
},
rules: {
'ember/avoid-leaking-state-in-ember-objects': 'warn',
'no-console': 'off'
'ember/no-jquery': 'error'
'no-console': 'off',
'ember/no-jquery': 'error',
'ember/require-computed-property-dependencies': 'warn',
'ember/no-observers': 'off'
},
overrides: [
// node files
+3
View File
@@ -24,6 +24,9 @@ export default Component.extend({
if (github_uid) {
return `https://avatars2.githubusercontent.com/u/${github_uid}?v=3&s=${SIZES[this.size]}`;
} else {
// TODO use custom avatar
return '';
}
})
+1 -3
View File
@@ -50,9 +50,7 @@ export default Helper.extend({
},
triggerRecompute () {
once(this, function () {
this.recompute();
});
once(this, this.recompute);
}
});
+2 -2
View File
@@ -251,12 +251,12 @@ export default Service.extend({
});
},
getCurrentUser: computed('kredits.provider', function() {
getCurrentUser: computed('kredits.provider', 'currentUserAccounts.[]', function() {
if (isEmpty(this.currentUserAccounts)) {
return RSVP.resolve();
}
return this.kredits.Contributor
.functions.getContributorIdByAddress(this.get('currentUserAccounts.firstObject'))
.functions.getContributorIdByAddress(this.currentUserAccounts.firstObject)
.then((id) => {
// check if the user is a contributor or not
if (id === 0) {