mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
get rid of global notify (#5355)
* [toasts] get rid of notify globals, refactor messageToasts for use by entire app * [remove notify] use arrow func in ajax call * fix lint + tests * actually fix tests from messageToast refactor * add 'test:one' npm script * debugger * [toasts] convert bootstrap flash messages to toasts in explore + sqllab * [toasts][tests] import from right file
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
import {
|
||||
INFO_TOAST,
|
||||
DANGER_TOAST,
|
||||
} from '../../../../src/dashboard/util/constants';
|
||||
|
||||
export default [
|
||||
{ id: 'info_id', toastType: INFO_TOAST, text: 'info toast' },
|
||||
{ id: 'danger_id', toastType: DANGER_TOAST, text: 'danger toast' },
|
||||
];
|
||||
@@ -2,7 +2,7 @@ import chartQueries from './mockChartQueries';
|
||||
import { dashboardLayout } from './mockDashboardLayout';
|
||||
import dashboardInfo from './mockDashboardInfo';
|
||||
import dashboardState from './mockDashboardState';
|
||||
import messageToasts from './mockMessageToasts';
|
||||
import messageToasts from '../../messageToasts/mockMessageToasts';
|
||||
import datasources from './mockDatasource';
|
||||
import sliceEntities from './mockSliceEntities';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user