Changeset 0.13.1 (#65)
This commit is contained in:
@@ -780,6 +780,16 @@ Object.assign(UI, {
|
||||
|
||||
// Vault / Encryption status
|
||||
const vaultEl = document.getElementById('adminVaultStatus');
|
||||
|
||||
// Web Search config (global_settings)
|
||||
const searchCfg = getSetting('search_config', {}) || {};
|
||||
document.getElementById('adminSearchProvider').value = searchCfg.provider || 'duckduckgo';
|
||||
document.getElementById('adminSearchEndpoint').value = searchCfg.endpoint || '';
|
||||
document.getElementById('adminSearchApiKey').value = searchCfg.api_key || '';
|
||||
document.getElementById('adminSearchMaxResults').value = String(searchCfg.max_results || 5);
|
||||
document.getElementById('searxngConfigFields').style.display =
|
||||
(searchCfg.provider === 'searxng') ? '' : 'none';
|
||||
|
||||
if (vaultEl) {
|
||||
try {
|
||||
const vault = await API.adminGetVaultStatus();
|
||||
|
||||
Reference in New Issue
Block a user