Fix lint errors
This commit is contained in:
parent
05ed214367
commit
abe33a831f
|
@ -8,7 +8,7 @@ export default (): void => {
|
||||||
rulesList.querySelectorAll<HTMLDivElement>('.form-group:not(.js-initalized)').forEach(entry => {
|
rulesList.querySelectorAll<HTMLDivElement>('.form-group:not(.js-initalized)').forEach(entry => {
|
||||||
const button = entry.querySelector('button')
|
const button = entry.querySelector('button')
|
||||||
button.onclick = createDeleteEvent(entry, button)
|
button.onclick = createDeleteEvent(entry, button)
|
||||||
})
|
});
|
||||||
const textEntry: HTMLButtonElement = document.getElementById('new-rule-text') as HTMLButtonElement;
|
const textEntry: HTMLButtonElement = document.getElementById('new-rule-text') as HTMLButtonElement;
|
||||||
const template: HTMLTemplateElement = document.getElementById('rule-template') as HTMLTemplateElement;
|
const template: HTMLTemplateElement = document.getElementById('rule-template') as HTMLTemplateElement;
|
||||||
|
|
||||||
|
|
|
@ -7,18 +7,18 @@
|
||||||
- @rules.each do |rule|
|
- @rules.each do |rule|
|
||||||
.form-group
|
.form-group
|
||||||
.input-group
|
.input-group
|
||||||
%input.form-control{disabled: true, value: rule.muted_phrase}
|
%input.form-control{ disabled: true, value: rule.muted_phrase }
|
||||||
.input-group-append
|
.input-group-append
|
||||||
%button.btn.btn-danger{type: 'button', data: {id: rule.id}} Remove
|
%button.btn.btn-danger{ type: 'button', data: { id: rule.id } } Remove
|
||||||
.form-group
|
.form-group
|
||||||
%form
|
%form
|
||||||
.input-group
|
.input-group
|
||||||
%input.form-control#new-rule-text{placeholder: 'Add a new muted word...'}
|
%input.form-control#new-rule-text{ placeholder: 'Add a new muted word...' }
|
||||||
.input-group-append
|
.input-group-append
|
||||||
%button.btn.btn-primary#new-rule-submit{type: 'submit'} Add
|
%button.btn.btn-primary#new-rule-submit{ type: 'submit' } Add
|
||||||
%template#rule-template
|
%template#rule-template
|
||||||
.form-group
|
.form-group
|
||||||
.input-group
|
.input-group
|
||||||
%input.form-control{disabled: true}
|
%input.form-control{ disabled: true }
|
||||||
.input-group-append
|
.input-group-append
|
||||||
%button.btn.btn-danger{type: 'button'} Remove
|
%button.btn.btn-danger{ type: 'button' } Remove
|
||||||
|
|
Loading…
Reference in New Issue