@@ -519,92 +519,90 @@ const DocumentList: React.FunctionComponent<DocumentListProps> = (props) => {
519519
520520 return (
521521 < div className = { documentsContainerStyles } data-testid = "compass-crud" >
522- < ErrorDetailsModalArea >
523- < WorkspaceContainer
524- scrollableContainerRef = { scrollRef }
525- initialTopInView = { currentViewInitialScrollTop === 0 }
526- toolbar = {
527- < CrudToolbar
528- activeDocumentView = { view }
529- error = { error }
530- count = { count }
531- isFetching = { isFetching }
532- loadingCount = { loadingCount }
533- start = { start }
534- end = { end }
535- page = { page }
536- getPage = { getPage }
537- insertDataHandler = { onOpenInsert }
538- onApplyClicked = { onApplyClicked }
539- onResetClicked = { onResetClicked }
540- onUpdateButtonClicked = { onUpdateButtonClicked }
541- onDeleteButtonClicked = { onDeleteButtonClicked }
542- onExpandAllClicked = { onExpandAllClicked }
543- onCollapseAllClicked = { onCollapseAllClicked }
544- openExportFileDialog = { openExportFileDialog }
545- outdated = { outdated }
546- readonly = { ! isEditable }
547- viewSwitchHandler = { handleViewChanged }
548- isWritable = { isWritable }
549- instanceDescription = { instanceDescription }
550- refreshDocuments = { refreshDocuments }
551- resultId = { resultId }
552- querySkip = { query . skip }
553- queryLimit = { query . limit }
554- insights = { getToolbarSignal (
555- JSON . stringify ( query . filter ?? { } ) ,
556- Boolean ( isCollectionScan ) ,
557- isSearchIndexesSupported ,
558- store . openCreateIndexModal . bind ( store ) ,
559- store . openCreateSearchIndexModal . bind ( store )
560- ) }
561- docsPerPage = { docsPerPage }
562- updateMaxDocumentsPerPage = { handleMaxDocsPerPageChanged }
563- />
564- }
565- >
566- { renderContent }
567- </ WorkspaceContainer >
568-
569- { isEditable && (
570- < >
571- < InsertDocumentDialog
572- closeInsertDocumentDialog = { closeInsertDocumentDialog }
573- insertDocument = { insertDocument }
574- insertMany = { insertMany }
575- updateJsonDoc = { updateJsonDoc }
576- toggleInsertDocument = { toggleInsertDocument }
577- toggleInsertDocumentView = { toggleInsertDocumentView }
578- jsonView
579- version = { version }
580- ns = { ns }
581- updateComment = { updateComment }
582- { ...insert }
583- />
584- < BulkUpdateModal
585- ns = { ns }
586- filter = { query . filter ?? { } }
587- count = { count }
588- enablePreview = { isUpdatePreviewSupported }
589- { ...bulkUpdate }
590- closeBulkUpdateModal = { closeBulkUpdateModal }
591- updateBulkUpdatePreview = { updateBulkUpdatePreview }
592- runBulkUpdate = { runBulkUpdate }
593- saveUpdateQuery = { onSaveUpdateQuery }
594- />
595- < BulkDeleteModal
596- open = { store . state . bulkDelete . status === 'open' }
597- namespace = { store . state . ns }
598- documentCount = { store . state . bulkDelete . affected }
599- filter = { query . filter ?? { } }
600- onCancel = { onCancelBulkDeleteDialog }
601- onConfirmDeletion = { onConfirmBulkDeleteDialog }
602- sampleDocuments = { store . state . bulkDelete . previews }
603- onExportToLanguage = { onExportToLanguageDeleteQuery }
604- />
605- </ >
606- ) }
607- </ ErrorDetailsModalArea >
522+ < WorkspaceContainer
523+ scrollableContainerRef = { scrollRef }
524+ initialTopInView = { currentViewInitialScrollTop === 0 }
525+ toolbar = {
526+ < CrudToolbar
527+ activeDocumentView = { view }
528+ error = { error }
529+ count = { count }
530+ isFetching = { isFetching }
531+ loadingCount = { loadingCount }
532+ start = { start }
533+ end = { end }
534+ page = { page }
535+ getPage = { getPage }
536+ insertDataHandler = { onOpenInsert }
537+ onApplyClicked = { onApplyClicked }
538+ onResetClicked = { onResetClicked }
539+ onUpdateButtonClicked = { onUpdateButtonClicked }
540+ onDeleteButtonClicked = { onDeleteButtonClicked }
541+ onExpandAllClicked = { onExpandAllClicked }
542+ onCollapseAllClicked = { onCollapseAllClicked }
543+ openExportFileDialog = { openExportFileDialog }
544+ outdated = { outdated }
545+ readonly = { ! isEditable }
546+ viewSwitchHandler = { handleViewChanged }
547+ isWritable = { isWritable }
548+ instanceDescription = { instanceDescription }
549+ refreshDocuments = { refreshDocuments }
550+ resultId = { resultId }
551+ querySkip = { query . skip }
552+ queryLimit = { query . limit }
553+ insights = { getToolbarSignal (
554+ JSON . stringify ( query . filter ?? { } ) ,
555+ Boolean ( isCollectionScan ) ,
556+ isSearchIndexesSupported ,
557+ store . openCreateIndexModal . bind ( store ) ,
558+ store . openCreateSearchIndexModal . bind ( store )
559+ ) }
560+ docsPerPage = { docsPerPage }
561+ updateMaxDocumentsPerPage = { handleMaxDocsPerPageChanged }
562+ />
563+ }
564+ >
565+ { renderContent }
566+ </ WorkspaceContainer >
567+
568+ { isEditable && (
569+ < >
570+ < InsertDocumentDialog
571+ closeInsertDocumentDialog = { closeInsertDocumentDialog }
572+ insertDocument = { insertDocument }
573+ insertMany = { insertMany }
574+ updateJsonDoc = { updateJsonDoc }
575+ toggleInsertDocument = { toggleInsertDocument }
576+ toggleInsertDocumentView = { toggleInsertDocumentView }
577+ jsonView
578+ version = { version }
579+ ns = { ns }
580+ updateComment = { updateComment }
581+ { ...insert }
582+ />
583+ < BulkUpdateModal
584+ ns = { ns }
585+ filter = { query . filter ?? { } }
586+ count = { count }
587+ enablePreview = { isUpdatePreviewSupported }
588+ { ...bulkUpdate }
589+ closeBulkUpdateModal = { closeBulkUpdateModal }
590+ updateBulkUpdatePreview = { updateBulkUpdatePreview }
591+ runBulkUpdate = { runBulkUpdate }
592+ saveUpdateQuery = { onSaveUpdateQuery }
593+ />
594+ < BulkDeleteModal
595+ open = { store . state . bulkDelete . status === 'open' }
596+ namespace = { store . state . ns }
597+ documentCount = { store . state . bulkDelete . affected }
598+ filter = { query . filter ?? { } }
599+ onCancel = { onCancelBulkDeleteDialog }
600+ onConfirmDeletion = { onConfirmBulkDeleteDialog }
601+ sampleDocuments = { store . state . bulkDelete . previews }
602+ onExportToLanguage = { onExportToLanguageDeleteQuery }
603+ />
604+ </ >
605+ ) }
608606 </ div >
609607 ) ;
610608} ;
0 commit comments