mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-04 14:44:26 +08:00
Fix red dot for active filters [SCI-6536] (#3861)
This commit is contained in:
parent
5654eddbb0
commit
39a014cfd4
1 changed files with 6 additions and 2 deletions
|
@ -108,10 +108,14 @@ window.initRepositoryFilter = () => {
|
|||
.attr('data-repository-filter-json', JSON.stringify({ filter_elements: this.filtersJSON }));
|
||||
|
||||
$('#repository_table_filter_elements_json').val(JSON.stringify(this.filtersJSON));
|
||||
$('#saveRepositoryFilters').removeClass('hidden');
|
||||
|
||||
if (this.filtersJSON.length > 0) {
|
||||
$('#saveRepositoryFilters').removeClass('hidden');
|
||||
}
|
||||
|
||||
$('#filterContainer .dropdown-selector-container').removeClass('open');
|
||||
$('#filtersDropdownButton').removeClass('open');
|
||||
$('#filtersDropdownButton').toggleClass('active-filters', this.filters.length > 0);
|
||||
$('#filtersDropdownButton').toggleClass('active-filters', this.filtersJSON.length > 0);
|
||||
$('.repository-table-error').removeClass('active').html('');
|
||||
this.reloadDataTable();
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue