+ + | +
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
+
+
+
+ |
+
-
+ -
+
+
+ |
+
+
-
-
-
-
- |
---|
- Add or config tables from your data source or use Query Workbench. -
- } - title={ -- Add or config tables from your data source or use Query Workbench. -
-+ Add databases and tables to your data source or use Query Workbench +
+ Add databases and tables to your data source or use Query Workbench +
+- Query your data in Metrics Analytics. -
-
- |
-
- |
-
- |
-
- |
-
- |
- - - - Actions - - - | -
---|---|---|---|---|---|
-
- Name
-
-
-
- |
-
-
- Database
-
-
-
- db1
-
-
- |
-
-
- Type
-
-
-
- Table
-
-
- |
-
-
- Created by Integration
-
-
-
- |
-
-
- Accelerations
-
-
-
- |
-
-
-
-
- |
-
-
- Name
-
-
-
- |
-
-
- Database
-
-
-
- db1
-
-
- |
-
-
- Type
-
-
-
- Table
-
-
- |
-
-
- Created by Integration
-
-
-
- |
-
-
- Accelerations
-
-
-
- |
-
-
-
-
- |
-
-
- Name
-
-
-
- |
-
-
- Database
-
-
-
- db2
-
-
- |
-
-
- Type
-
-
-
- Table
-
-
- |
-
-
- Created by Integration
-
-
-
- |
-
-
- Accelerations
-
-
-
- |
-
-
-
-
- |
-
-
- Name
-
-
-
- |
-
-
- Database
-
-
-
- db3
-
-
- |
-
-
- Type
-
-
-
- Table
-
-
- |
-
-
- Created by Integration
-
-
-
- |
-
-
- Accelerations
-
-
- -
-
- |
-
-
-
-
- |
-
-
- Name
-
-
-
- |
-
-
- Database
-
-
-
- db3
-
-
- |
-
-
- Type
-
-
-
- Table
-
-
- |
-
-
- Created by Integration
-
-
- -
-
- |
-
-
- Accelerations
-
-
-
- |
-
-
-
-
- |
-
-
- Name
-
-
-
- |
-
-
- Database
-
-
-
- db3
-
-
- |
-
-
- Type
-
-
-
- Cover Index
-
-
- |
-
-
- Created by Integration
-
-
- -
-
- |
-
-
- Accelerations
-
-
-
- |
-
-
-
-
- |
-
-
- Name
-
-
-
- |
-
-
- Database
-
-
-
- db1
-
-
- |
-
-
- Type
-
-
-
- Skip Index
-
-
- |
-
-
- Created by Integration
-
-
-
- |
-
-
- Accelerations
-
-
-
- |
-
-
-
-
- |
-
- |
-
- |
-
- |
-
- |
-
- |
- - - - Actions - - - | -
---|---|---|---|---|---|
-
- Name
-
-
-
- |
-
-
- Database
-
-
-
- db1
-
-
- |
-
-
- Type
-
-
-
- Table
-
-
- |
-
-
- Created by Integration
-
-
-
- |
-
-
- Accelerations
-
-
-
- |
-
-
-
-
- |
-
-
- Name
-
-
-
- |
-
-
- Database
-
-
-
- db1
-
-
- |
-
-
- Type
-
-
-
- Table
-
-
- |
-
-
- Created by Integration
-
-
-
- |
-
-
- Accelerations
-
-
-
- |
-
-
-
-
- |
-
-
- Name
-
-
-
- |
-
-
- Database
-
-
-
- db2
-
-
- |
-
-
- Type
-
-
-
- Table
-
-
- |
-
-
- Created by Integration
-
-
-
- |
-
-
- Accelerations
-
-
-
- |
-
-
-
-
- |
-
-
- Name
-
-
-
- |
-
-
- Database
-
-
-
- db3
-
-
- |
-
-
- Type
-
-
-
- Table
-
-
- |
-
-
- Created by Integration
-
-
-
- |
-
-
- Accelerations
-
-
- -
-
- |
-
-
-
-
- |
-
-
- Name
-
-
-
- |
-
-
- Database
-
-
-
- db3
-
-
- |
-
-
- Type
-
-
-
- Table
-
-
- |
-
-
- Created by Integration
-
-
- -
-
- |
-
-
- Accelerations
-
-
-
- |
-
-
-
-
- |
-
-
- Name
-
-
-
- |
-
-
- Database
-
-
-
- db3
-
-
- |
-
-
- Type
-
-
-
- Cover Index
-
-
- |
-
-
- Created by Integration
-
-
- -
-
- |
-
-
- Accelerations
-
-
-
- |
-
-
-
-
- |
-
-
- Name
-
-
-
- |
-
-
- Database
-
-
-
- db1
-
-
- |
-
-
- Type
-
-
-
- Skip Index
-
-
- |
-
-
- Created by Integration
-
-
-
- |
-
-
- Accelerations
-
-
-
- |
-
-
-
-
- |
-
+ Loading + databases +
- {i18n.translate('datasources.associatedObjectsTab.noDataDescription', { - defaultMessage: ASSC_OBJ_NO_DATA_DESCRIPTION, - })} -
- } - actions={ -{bodyText}
+There was an error loading your databases.
} + /> + ); +}; diff --git a/public/components/datasources/components/manage/associated_objects/utils/associated_objects_tab_loading.tsx b/public/components/datasources/components/manage/associated_objects/utils/associated_objects_tab_loading.tsx new file mode 100644 index 000000000..edfc872ca --- /dev/null +++ b/public/components/datasources/components/manage/associated_objects/utils/associated_objects_tab_loading.tsx @@ -0,0 +1,25 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ + +import { EuiEmptyPrompt, EuiLoadingSpinner } from '@elastic/eui'; +import React from 'react'; + +interface AssociatedObjectsTabLoadingProps { + objectType: string; + warningMessage: boolean; +} + +export const AssociatedObjectsTabLoading: React.FCLoading {objectType}
+ {warningMessage ?This may take a moment.
: <>>} + > + ); + + return