fix(section/favorite): ensure select-all-checkbox is wired

This commit is contained in:
Edouard Vanbelle
2026-04-16 00:16:40 +02:00
parent 3276da366c
commit 8e18e0c848
3 changed files with 6 additions and 2 deletions
+5
View File
@@ -9,6 +9,7 @@
import { ui } from '../../app/ui.js';
import { getCsrfHeaders } from '../../core/csrf.js';
import { i18n } from '../../core/i18n.js';
import { multiSelect } from '../files/multiSelect.js';
const favorites = {
/** @type {Map<string, object>} key = "file:<id>" | "folder:<id>" */
@@ -172,6 +173,10 @@ const favorites = {
}
ui.resetFilesList(); // ensure also list visible & error hidden
// wire buttons & select-all-checkbox as list header has changed in ui.resetFilesList()
// FIXME: this case is not easy to understand, should apply better implementation
multiSelect.init();
ui.updateBreadcrumb('');
if (this._cache.size === 0) {