mirror of
https://github.com/apache/superset.git
synced 2026-05-12 11:25:56 +00:00
chore(Dashboard): Implement dedicated message for missing dataset (#16959)
* Implement dedicated message * Clean up
This commit is contained in:
@@ -21,6 +21,7 @@ import { ErrorTypeEnum } from 'src/components/ErrorMessage/types';
|
||||
import TimeoutErrorMessage from 'src/components/ErrorMessage/TimeoutErrorMessage';
|
||||
import DatabaseErrorMessage from 'src/components/ErrorMessage/DatabaseErrorMessage';
|
||||
import ParameterErrorMessage from 'src/components/ErrorMessage/ParameterErrorMessage';
|
||||
import DatasetNotFoundErrorMessage from 'src/components/ErrorMessage/DatasetNotFoundErrorMessage';
|
||||
|
||||
import setupErrorMessagesExtra from './setupErrorMessagesExtra';
|
||||
|
||||
@@ -139,5 +140,9 @@ export default function setupErrorMessages() {
|
||||
ErrorTypeEnum.CONNECTION_DATABASE_PERMISSIONS_ERROR,
|
||||
DatabaseErrorMessage,
|
||||
);
|
||||
errorMessageComponentRegistry.registerValue(
|
||||
ErrorTypeEnum.FAILED_FETCHING_DATASOURCE_INFO_ERROR,
|
||||
DatasetNotFoundErrorMessage,
|
||||
);
|
||||
setupErrorMessagesExtra();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user