refactor(theme)!: remove deprecated `disableDetailedView` local search option

BREAKING CHANGE: The deprecated `disableDetailedView` option of local search has been removed. Use `detailedView: false` instead.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
pull/5335/head
Divyansh Singh 2 months ago
parent 18d1b4713c
commit cec499869f

@ -117,8 +117,7 @@ const showDetailedList = useLocalStorage(
const disableDetailedView = computed(() => {
return (
theme.value.search?.provider === 'local' &&
(theme.value.search.options?.disableDetailedView === true ||
theme.value.search.options?.detailedView === false)
theme.value.search.options?.detailedView === false
)
})

@ -343,12 +343,6 @@ export namespace DefaultTheme {
// local search --------------------------------------------------------------
export interface LocalSearchOptions {
/**
* @default false
* @deprecated Use `detailedView: false` instead.
*/
disableDetailedView?: boolean
/**
* If `true`, the detailed view will be enabled by default.
* If `false`, the detailed view will be disabled.

Loading…
Cancel
Save