Fix ESLint errors
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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.');
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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}}
|
||||||
|
|||||||
Reference in New Issue
Block a user