1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-10-06 09:37:12 +02:00

Further fine tune visual as per feedback

Related issue:
https://github.com/uBlockOrigin/uBlock-issues/issues/3066#issuecomment-1891023881
This commit is contained in:
Raymond Hill 2024-01-14 13:29:58 -05:00
parent 975e3819a9
commit 3e6333d02b
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
2 changed files with 5 additions and 4 deletions

View File

@ -15,7 +15,8 @@ body {
#buttonUpdate.active {
pointer-events: none;
}
#buttonUpdate.active .fa-icon svg {
#buttonUpdate.active .fa-icon svg,
body.working #buttonUpdate:not(.disabled) .fa-icon svg {
animation: spin 1s linear infinite;
transform-origin: 50%;
}

View File

@ -286,14 +286,14 @@ const renderFilterLists = ( ) => {
/******************************************************************************/
const renderWidgets = ( ) => {
const updating = dom.cl.has(dom.body, 'updating');
const hasObsolete = qs$('#lists .listEntry.checked.obsolete:not(.toRemove)') !== null;
dom.cl.toggle('#buttonApply', 'disabled',
filteringSettingsHash === hashFromCurrentFromSettings()
);
const updating = dom.cl.has(dom.body, 'updating');
dom.cl.toggle('#buttonUpdate', 'active', updating);
dom.cl.toggle('#buttonUpdate', 'disabled',
updating === false &&
qs$('#lists .listEntry.checked.obsolete:not(.toRemove)') === null
updating === false && hasObsolete === false
);
};