5 lines
229 B
JavaScript
5 lines
229 B
JavaScript
export function setStatus(path, html, state, elements) {
|
|
const index = state.files.findIndex((file) => file.name === path);
|
|
const cell = elements.tableBodyEl.querySelector(`#st-${index}`);
|
|
if (cell) cell.innerHTML = html;
|
|
} |