parent
fd496dd546
commit
42c7f39e73
|
@ -111,6 +111,7 @@ function checkUpdate(entry, {single} = {}) {
|
||||||
|
|
||||||
|
|
||||||
function reportUpdateState({updated, style, error, STATES}) {
|
function reportUpdateState({updated, style, error, STATES}) {
|
||||||
|
const isCheckAll = document.body.classList.contains('update-in-progress');
|
||||||
const entry = $(ENTRY_ID_PREFIX + style.id);
|
const entry = $(ENTRY_ID_PREFIX + style.id);
|
||||||
const newClasses = new Map([
|
const newClasses = new Map([
|
||||||
/*
|
/*
|
||||||
|
@ -155,8 +156,7 @@ function reportUpdateState({updated, style, error, STATES}) {
|
||||||
$('.update-note', entry).textContent = message;
|
$('.update-note', entry).textContent = message;
|
||||||
$('.check-update', entry).title = newUI.enabled ? message : '';
|
$('.check-update', entry).title = newUI.enabled ? message : '';
|
||||||
$('.update', entry).title = t(edited ? 'updateCheckManualUpdateForce' : 'installUpdate');
|
$('.update', entry).title = t(edited ? 'updateCheckManualUpdateForce' : 'installUpdate');
|
||||||
if (!document.body.classList.contains('update-in-progress')) {
|
if (!isCheckAll) {
|
||||||
// this is a single update job so we can decide whether to hide the filter
|
|
||||||
renderUpdatesOnlyFilter({show: $('.can-update, .update-problem')});
|
renderUpdatesOnlyFilter({show: $('.can-update, .update-problem')});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -177,9 +177,9 @@ function reportUpdateState({updated, style, error, STATES}) {
|
||||||
entry.className = className;
|
entry.className = className;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (filtersSelector.hide) {
|
if (filtersSelector.hide && isCheckAll) {
|
||||||
filterAndAppend({entry});
|
filterAndAppend({entry}).then(() =>
|
||||||
sorter.update();
|
sorter.update());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user