Add close button [SCI-7585]

This commit is contained in:
sboursen-scinote 2023-01-26 08:41:33 +01:00
parent ef7395b0cd
commit adcb0e84f8
4 changed files with 8 additions and 1 deletions

View file

@ -278,7 +278,7 @@
.clear-filters-btn {
margin-left: 0;
margin-top: 0.5em;
margin-top: .5em;
padding-left: 38px;
padding-right: 38px;
}

View file

@ -131,6 +131,9 @@ window.initRepositoryFilter = () => {
},
updateCurrentFilterName(name) {
this.filterName = name;
},
hideModal() {
$('#filtersDropdownButton').removeClass('open');
}
}
});

View file

@ -19,6 +19,9 @@
/>
</div>
</div>
<button type="button" class="close" @click="$emit('hide-modal')" aria-label="<%= t('general.close') %>">
<span aria-hidden="true">&times;</span>
</button>
</div>
<FiltersList
:filters="filters"

View file

@ -33,6 +33,7 @@
@filters:apply="applyFilters"
@filters:clear="clearFilters"
@filters:update="updateFilters"
@hide-modal="hideModal"
/>
</div>
</div>