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:
parent
975e3819a9
commit
3e6333d02b
@ -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%;
|
||||
}
|
||||
|
@ -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
|
||||
);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user