From e17da88a819597828ef75a34807a8ea68c0a448f Mon Sep 17 00:00:00 2001 From: Bruno Charest Date: Thu, 28 May 2026 19:43:34 -0400 Subject: [PATCH] fix: export _populateRecentVaultFilter from config.js, import in sidebar.js --- frontend/js/config.js | 2 +- frontend/js/sidebar.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/js/config.js b/frontend/js/config.js index 5fbac8a..b3dae0a 100644 --- a/frontend/js/config.js +++ b/frontend/js/config.js @@ -116,7 +116,7 @@ function _refreshRecentTimestamps() { }); } -function _populateRecentVaultFilter() { +export function _populateRecentVaultFilter() { const select = document.getElementById("recent-vault-filter"); if (!select) return; // keep first option "Tous les vaults" diff --git a/frontend/js/sidebar.js b/frontend/js/sidebar.js index 30e749f..1b8871e 100644 --- a/frontend/js/sidebar.js +++ b/frontend/js/sidebar.js @@ -2,6 +2,7 @@ import { state } from './state.js'; import { safeCreateIcons, getFileIcon } from './utils.js'; import { api } from './auth.js'; import { populateCustomDropdown } from './ui.js'; +import { _populateRecentVaultFilter } from './config.js'; import { el } from './viewer.js'; // ---------------------------------------------------------------------------