www/caddy: Fix missing translation and toggle filter icon correctly (#4648)

This commit is contained in:
Monviech 2025-04-17 10:05:16 +02:00 committed by GitHub
parent 71e11b4d7f
commit 8d2972a4ac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -323,7 +323,9 @@
});
$('#reverseFilterIcon').toggleClass('text-success', ($(this).val() || []).length > 0);
$('#reverseFilterIcon')
.toggleClass('text-success fa-filter-circle-xmark', ($(this).val() || []).length > 0)
.toggleClass('fa-filter', !($(this).val() || []).length);
});
// Autofill domain and subdomain when add dialog is opened
@ -475,8 +477,8 @@
</style>
<div id="add_filter_container" class="btn-group" style="display: none;">
<button type="button" id="reverseFilterClear" class="btn btn-default" title="Clear Selection">
<i id="reverseFilterIcon" class="fa fa-fw fa-filter-circle-xmark"></i>
<button type="button" id="reverseFilterClear" class="btn btn-default" title="{{ lang._('Clear Selection') }}">
<i id="reverseFilterIcon" class="fa fa-fw fa-filter"></i>
</button>
<select id="reverseFilter" class="selectpicker form-control" multiple data-live-search="true" data-width="200px" data-size="10" data-container="body" title="{{ lang._('Filter by Domain') }}">
</select>