Fix red dot for active filters [SCI-6536] (#3861)

This commit is contained in:
artoscinote 2022-02-16 11:07:23 +01:00 committed by GitHub
parent 5654eddbb0
commit 39a014cfd4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();
},