From 03094e93b233a56f112548ab7f5fdd93cc6b289e Mon Sep 17 00:00:00 2001 From: cproudlock Date: Wed, 26 Aug 2026 12:42:23 -0400 Subject: [PATCH] Let Guides be switched off in Settings > Search like every other domain Global search has per-domain toggles (search__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. --- frontend/src/composables/systemSettings.js | 1 + shopdb/core/api/settings.py | 1 + 2 files changed, 2 insertions(+) diff --git a/frontend/src/composables/systemSettings.js b/frontend/src/composables/systemSettings.js index 4f9fa842..69b090a9 100644 --- a/frontend/src/composables/systemSettings.js +++ b/frontend/src/composables/systemSettings.js @@ -45,6 +45,7 @@ export const assetTypeCols = [ export const searchDomains = [ { key: 'application', label: 'Applications' }, { key: 'knowledgebase', label: 'Knowledge Base' }, + { key: 'guide', label: 'Guides' }, { key: 'employee', label: 'Employees' }, { key: 'machine', label: 'Machines' }, { key: 'computer', label: 'PCs' }, diff --git a/shopdb/core/api/settings.py b/shopdb/core/api/settings.py index 6a17a338..c38d7bdb 100644 --- a/shopdb/core/api/settings.py +++ b/shopdb/core/api/settings.py @@ -101,6 +101,7 @@ IDENTIFIER_ASSETTYPES = ['machine', 'computer', 'printer', 'network_device', SEARCH_DOMAINS = { 'application': 'Applications', 'knowledgebase': 'Knowledge Base', + 'guide': 'Guides', 'employee': 'Employees', 'machine': 'Machines', 'computer': 'PCs',