fix linter

This commit is contained in:
Lisa Durand 2022-12-20 15:42:21 +01:00
parent 7fcc892398
commit 8df0147fd1
3 changed files with 6 additions and 5 deletions

View file

@ -266,7 +266,8 @@ ul.dropdown-items {
}
// Make child links fill the whole clickable area
> a, .dropdown-items-link {
> a,
.dropdown-items-link {
display: flex;
flex-grow: 1;
margin: -$default-padding;

View file

@ -19,12 +19,12 @@
- if opt[:operation] == 'accepter'
.wrapper
%a{ href: '#', class: 'dropdown-items-link', onclick: "DS.showMotivation(event, 'accept');" }
%a.dropdown-items-link{ href: '#', onclick: "DS.showMotivation(event, 'accept');" }
%span{ class: icons[opt[:operation].to_sym] }
.dropdown-description
%h4= opt[:label]
.motivation.hidden{ class: 'accept' }
.motivation.hidden.accept
= form.text_area :motivation, class: 'motivation-text-area'
.optional-justificatif{ id: "justificatif_motivation_suggest_accept", onclick: "DS.showImportJustificatif('accept');" }
.button Ajouter un justificatif (optionnel)

View file

@ -38,7 +38,7 @@ export class BatchOperationController extends ApplicationController {
toggleSubmitButtonWhenNeeded() {
const available = this.inputTargets.some((e) => e.checked);
const dropdown = document.querySelector("#batch_operation_dropdown");
const dropdown = document.querySelector('#batch_operation_dropdown');
if (available) {
this.submitTargets.forEach((e) => e.removeAttribute('disabled'));
if (dropdown) {