mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-10 17:36:33 +08:00
Add close button [SCI-7585]
This commit is contained in:
parent
ef7395b0cd
commit
adcb0e84f8
4 changed files with 8 additions and 1 deletions
|
@ -278,7 +278,7 @@
|
|||
|
||||
.clear-filters-btn {
|
||||
margin-left: 0;
|
||||
margin-top: 0.5em;
|
||||
margin-top: .5em;
|
||||
padding-left: 38px;
|
||||
padding-right: 38px;
|
||||
}
|
||||
|
|
|
@ -131,6 +131,9 @@ window.initRepositoryFilter = () => {
|
|||
},
|
||||
updateCurrentFilterName(name) {
|
||||
this.filterName = name;
|
||||
},
|
||||
hideModal() {
|
||||
$('#filtersDropdownButton').removeClass('open');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
@ -19,6 +19,9 @@
|
|||
/>
|
||||
</div>
|
||||
</div>
|
||||
<button type="button" class="close" @click="$emit('hide-modal')" aria-label="<%= t('general.close') %>">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<FiltersList
|
||||
:filters="filters"
|
||||
|
|
|
@ -33,6 +33,7 @@
|
|||
@filters:apply="applyFilters"
|
||||
@filters:clear="clearFilters"
|
||||
@filters:update="updateFilters"
|
||||
@hide-modal="hideModal"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue