Let Guides be switched off in Settings > Search like every other domain

Global search has per-domain toggles (search_<type>_enabled), enforced
server-side and edited from Settings. Guides answered the search box but had no
toggle, so it was the one domain nobody could turn off - and the omission would
only have surfaced when somebody went looking for the switch and could not find
it.

Missing key still means enabled, so nothing changes until somebody decides
otherwise.
This commit is contained in:
cproudlock
2026-08-26 12:42:23 -04:00
parent bd0e9695e5
commit 03094e93b2
2 changed files with 2 additions and 0 deletions

View File

@@ -45,6 +45,7 @@ export const assetTypeCols = [
export const searchDomains = [ export const searchDomains = [
{ key: 'application', label: 'Applications' }, { key: 'application', label: 'Applications' },
{ key: 'knowledgebase', label: 'Knowledge Base' }, { key: 'knowledgebase', label: 'Knowledge Base' },
{ key: 'guide', label: 'Guides' },
{ key: 'employee', label: 'Employees' }, { key: 'employee', label: 'Employees' },
{ key: 'machine', label: 'Machines' }, { key: 'machine', label: 'Machines' },
{ key: 'computer', label: 'PCs' }, { key: 'computer', label: 'PCs' },

View File

@@ -101,6 +101,7 @@ IDENTIFIER_ASSETTYPES = ['machine', 'computer', 'printer', 'network_device',
SEARCH_DOMAINS = { SEARCH_DOMAINS = {
'application': 'Applications', 'application': 'Applications',
'knowledgebase': 'Knowledge Base', 'knowledgebase': 'Knowledge Base',
'guide': 'Guides',
'employee': 'Employees', 'employee': 'Employees',
'machine': 'Machines', 'machine': 'Machines',
'computer': 'PCs', 'computer': 'PCs',