diff --git a/frontend/app.js b/frontend/app.js index 429677b..500ee25 100644 --- a/frontend/app.js +++ b/frontend/app.js @@ -4653,13 +4653,35 @@ function showWelcome() { hideProgressBar(); - // Show the dashboard widget instead of simple welcome message + + // Ensure the dashboard container exists (it might have been wiped by renderFile) + const area = document.getElementById("content-area"); + if (area && !document.getElementById("dashboard-home")) { + area.innerHTML = ` +
+
+
+ +

Derniers fichiers ouverts

+
+
+
+
+
+
+
+
+ +
`; + safeCreateIcons(); + } + + // Show the dashboard widget if (typeof DashboardRecentWidget !== "undefined") { - // Re-init the widget to refresh data and populate vault filter - const dashboardVaultFilter = document.getElementById("dashboard-vault-filter"); - if (dashboardVaultFilter) { - dashboardVaultFilter.value = selectedContextVault === "all" ? "" : selectedContextVault; - } DashboardRecentWidget.load(selectedContextVault); } } diff --git a/frontend/index.html b/frontend/index.html index dc122b1..3d654c7 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -356,11 +356,6 @@

Derniers fichiers ouverts

-
- -