Fix ESLint errors

This commit is contained in:
2018-04-16 19:14:37 +02:00
parent b09f19f399
commit ba3c707da3
3 changed files with 8 additions and 3 deletions
+5
View File
@@ -4,6 +4,9 @@ module.exports = {
ecmaVersion: 2017, ecmaVersion: 2017,
sourceType: 'module' sourceType: 'module'
}, },
globals: {
console: true
},
plugins: [ plugins: [
'ember' 'ember'
], ],
@@ -15,6 +18,8 @@ module.exports = {
browser: true browser: true
}, },
rules: { rules: {
'ember/avoid-leaking-state-in-ember-objects': 'warn',
'no-console': 'off'
}, },
overrides: [ overrides: [
// node files // node files
+1 -1
View File
@@ -9,7 +9,7 @@ export default Component.extend({
confirm(proposalId) { confirm(proposalId) {
if (this.contractInteractionEnabled) { if (this.contractInteractionEnabled) {
this.sendAction('confirmAction', proposalId); this.confirmProposal(proposalId);
} else { } else {
window.alert('Only members can vote on proposals. Please ask someone to set you up.'); window.alert('Only members can vote on proposals. Please ask someone to set you up.');
} }
+2 -2
View File
@@ -32,7 +32,7 @@
<div class="content"> <div class="content">
{{!-- TODO: We need a better naming for kredits.hasAccounts --}} {{!-- TODO: We need a better naming for kredits.hasAccounts --}}
{{proposal-list proposals=proposalsOpenSorted {{proposal-list proposals=proposalsOpenSorted
confirmAction="confirmProposal" confirmProposal=(action "confirmProposal")
contractInteractionEnabled=kredits.hasAccounts}} contractInteractionEnabled=kredits.hasAccounts}}
{{!-- TODO: We need a better naming --}} {{!-- TODO: We need a better naming --}}
@@ -51,7 +51,7 @@
</header> </header>
<div class="content"> <div class="content">
{{proposal-list proposals=proposalsClosedSorted {{proposal-list proposals=proposalsClosedSorted
confirmAction="confirmProposal"}} confirmProposal=(action "confirmProposal")}}
{{!-- TODO: We need a better naming --}} {{!-- TODO: We need a better naming --}}
{{#if kredits.hasAccounts}} {{#if kredits.hasAccounts}}