|
11 | 11 | * or submit itself to any jurisdiction. |
12 | 12 | */ |
13 | 13 | import { h, info, popover, PopoverAnchors, PopoverTriggerPreConfiguration, DropdownComponent, CopyToClipboardComponent } from '/js/src/index.js'; |
14 | | -import { iconCaretBottom, iconX } from '/js/src/icons.js'; |
| 14 | +import { iconCaretBottom } from '/js/src/icons.js'; |
15 | 15 | import { profiles } from '../../common/table/profiles.js'; |
16 | 16 | import { applyProfile } from '../../../utilities/applyProfile.js'; |
17 | 17 | import { tooltip } from '../../common/popover/tooltip.js'; |
@@ -54,9 +54,9 @@ const resetFiltersButton = (filteringModel, isIcon = false) => { |
54 | 54 | }; |
55 | 55 |
|
56 | 56 | return isIcon |
57 | | - ? h('.clear-filter-icon.b1.b-danger.btn-group-item.last-item.pulse-red', attributes, [h('', 'X')]) |
| 57 | + ? h('.clear-filter-icon-container.btn-group-item.last-item.pulse-red', attributes, h('.clear-filter-icon.b1.b-danger', 'X')) |
58 | 58 | : h('button#reset-filters.btn.btn-danger', attributes, 'Reset all filters'); |
59 | | -} |
| 59 | +}; |
60 | 60 |
|
61 | 61 | /** |
62 | 62 | * Create main header of the filters panel |
@@ -178,18 +178,18 @@ const pasteButtonOption = (model) => { |
178 | 178 | * @returns {Component} the active filters indicator |
179 | 179 | */ |
180 | 180 | const activeFilterIndicator = (filteringModel) => { |
181 | | - const hasActiveFilters = filteringModel.isAnyFilterActive() |
| 181 | + const hasActiveFilters = filteringModel.isAnyFilterActive(); |
182 | 182 | const innerText = `Filters ${hasActiveFilters ? 'Active' : 'Inactive'}`; |
183 | 183 |
|
184 | 184 | let indicator = '.active-filters-indicator.b1'; |
185 | 185 | indicator += hasActiveFilters ? '.b-success.success.pulse-green' : '.inactive'; |
186 | 186 |
|
187 | | - const children = [h(indicator, h('', innerText))]; |
| 187 | + const children = [h(indicator, innerText)]; |
188 | 188 |
|
189 | 189 | if (hasActiveFilters) { |
190 | | - children.push(resetFiltersButton(filteringModel, true)) |
| 190 | + children.push(resetFiltersButton(filteringModel, true)); |
191 | 191 | } |
192 | | - |
| 192 | + |
193 | 193 | return h('.flex-row.items-center', children); |
194 | 194 | }; |
195 | 195 |
|
|
0 commit comments