diff --git a/.eslintrc.js b/.eslintrc.js index ff40620..ad16c5d 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -4,6 +4,9 @@ module.exports = { ecmaVersion: 2017, sourceType: 'module' }, + globals: { + console: true + }, plugins: [ 'ember' ], @@ -15,6 +18,8 @@ module.exports = { browser: true }, rules: { + 'ember/avoid-leaking-state-in-ember-objects': 'warn', + 'no-console': 'off' }, overrides: [ // node files diff --git a/app/components/proposal-list/component.js b/app/components/proposal-list/component.js index 63a1a11..272e28e 100644 --- a/app/components/proposal-list/component.js +++ b/app/components/proposal-list/component.js @@ -9,7 +9,7 @@ export default Component.extend({ confirm(proposalId) { if (this.contractInteractionEnabled) { - this.sendAction('confirmAction', proposalId); + this.confirmProposal(proposalId); } else { window.alert('Only members can vote on proposals. Please ask someone to set you up.'); } diff --git a/app/templates/index.hbs b/app/templates/index.hbs index 2386410..ab0c5cf 100644 --- a/app/templates/index.hbs +++ b/app/templates/index.hbs @@ -32,7 +32,7 @@