()
| 1408 | } |
| 1409 | |
| 1410 | export function loadHeaderOrder() { |
| 1411 | const header = getHeaderDropArea(); |
| 1412 | if (!header) return; |
| 1413 | header.innerHTML = ''; |
| 1414 | |
| 1415 | const layout = readLayout(); |
| 1416 | |
| 1417 | if (isZonesCollapsed()) { |
| 1418 | getCards().forEach(insertCardInHeader); |
| 1419 | showHeaderDockPersistent(); |
| 1420 | saveHeaderOrder(); |
| 1421 | return; |
| 1422 | } |
| 1423 | |
| 1424 | // Not collapsed: only cards saved to header zone appear as icons |
| 1425 | getCards().forEach(card => { |
| 1426 | if (layout[card.id] === ZONES.HEADER) insertCardInHeader(card); |
| 1427 | }); |
| 1428 | if (header.children.length === 0) header.style.display = 'none'; |
| 1429 | saveHeaderOrder(); |
| 1430 | } |
| 1431 | |
| 1432 | export function initDragAndDrop() { |
| 1433 | function run() { |
no test coverage detected