File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
packages/compass-indexes/src/components Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -129,7 +129,8 @@ export const IndexesToolbar: React.FunctionComponent<IndexesToolbarProps> = ({
129129 data-testid = "indexes-toolbar-container"
130130 >
131131 { ( ! isReadonlyView ||
132- isVersionSearchCompatibleForViews ( serverVersion ) ) && (
132+ ( isVersionSearchCompatibleForViews ( serverVersion ) &&
133+ isSearchManagementActive ) ) && (
133134 < div data-testid = "indexes-toolbar" >
134135 < div className = { toolbarButtonsContainer } >
135136 { showCreateIndexButton && (
@@ -270,7 +271,7 @@ export const IndexesToolbar: React.FunctionComponent<IndexesToolbarProps> = ({
270271 </ div >
271272 </ div >
272273 ) }
273- { ! ! errorMessage && (
274+ { ! ! errorMessage && isSearchManagementActive && (
274275 < ErrorSummary data-testid = "indexes-error" errors = { [ errorMessage ] } />
275276 ) }
276277 </ div >
Original file line number Diff line number Diff line change @@ -239,7 +239,8 @@ export function Indexes({
239239 < RegularIndexesTable />
240240 ) }
241241 { ( ! isReadonlyView ||
242- isVersionSearchCompatibleForViews ( serverVersion ) ) &&
242+ ( isVersionSearchCompatibleForViews ( serverVersion ) &&
243+ enableAtlasSearchIndexes ) ) &&
243244 currentIndexesView === 'search-indexes' && < SearchIndexesTable /> }
244245 { isReadonlyView && searchIndexes . indexes . length === 0 && (
245246 < ViewVersionIncompatibleEmptyState
You can’t perform that action at this time.
0 commit comments