Fix needless visual toggling of update/apply buttons

This commit is contained in:
Raymond Hill 2019-09-18 06:52:10 -04:00
parent ed99d52bc4
commit 78f430678a
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 2 additions and 2 deletions

View File

@ -326,7 +326,7 @@ const renderWidgets = function() {
);
uDom('#buttonUpdate').toggleClass(
'disabled',
document.querySelector('body:not(.updating) #lists .listEntry.obsolete > input[type="checkbox"]:checked') === null
document.querySelector('body:not(.updating) #lists .listEntry.obsolete:not(.toRemove) > input[type="checkbox"]:checked') === null
);
};
@ -475,8 +475,8 @@ const selectFilterLists = async function() {
const buttonApplyHandler = async function() {
uDom('#buttonApply').removeClass('enabled');
renderWidgets();
await selectFilterLists();
renderWidgets();
messaging.send('dashboard', { what: 'reloadAllFilters' });
};