[System Pop Up] Hide hidden and deprecated settings from search results (#4390)

This commit is contained in:
bmcomfy
2025-07-08 17:19:37 -07:00
committed by Terry Jia
parent 6e8a9ae41f
commit 786987903e
3 changed files with 719 additions and 0 deletions

View File

@@ -53,6 +53,11 @@ export function useSettingSearch() {
const queryLower = query.toLocaleLowerCase()
const allSettings = Object.values(settingStore.settingsById)
const filteredSettings = allSettings.filter((setting) => {
// Filter out hidden and deprecated settings, just like in normal settings tree
if (setting.type === 'hidden' || setting.deprecated) {
return false
}
const idLower = setting.id.toLowerCase()
const nameLower = setting.name.toLowerCase()
const translatedName = st(