fix: header Forge — affiche Forge + titre/fichier, restaure ObsiGate a la fermeture
CI / lint (push) Failing after 10s
CI / test (push) Has been skipped
CI / build (push) Has been skipped
CI / e2e (push) Has been skipped
CI / security (push) Failing after -7s

This commit is contained in:
2026-06-16 10:13:19 -04:00
parent 5fc110a1b2
commit 36c1546098
3 changed files with 13 additions and 0 deletions
+7
View File
@@ -529,6 +529,13 @@ export function renderFile(data) {
// Set editor state so parent buttons work
state.editorVault = data.vault;
state.editorPath = data.path;
// Update header: show "Forge" brand + filename
var brand = modal.querySelector(".editor-brand");
var titleInp = document.getElementById("editor-title-input");
var fileInp = document.getElementById("editor-filename-input");
if (brand) brand.textContent = "Forge";
if (titleInp) { titleInp.value = data.title || ''; titleInp.placeholder = 'Titre...'; }
if (fileInp) fileInp.value = data.path.split('/').pop();
bodyEl.innerHTML = "";
bodyEl.style.overflow = "hidden";
var iframe = document.createElement("iframe");