Skip to content

Commit 1a3fe0d

Browse files
committed
Show notification that dataset upload has begun upon clicking submit
1 parent efd7650 commit 1a3fe0d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

static/js/components/Datasets.jsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import * as Action from '../actions';
1010
import { reformatDatetime } from '../utils';
1111
import CesiumTooltip from './Tooltip';
1212
import FoldableRow from './FoldableRow';
13+
import { showNotification } from 'baselayer/components/Notifications';
1314

1415

1516
const DatasetsTab = props => (
@@ -99,9 +100,10 @@ const dsMapStateToProps = (state, ownProps) => (
99100

100101
const dsMapDispatchToProps = (dispatch, ownProps) => (
101102
{
102-
onSubmit: form => (
103-
dispatch(Action.uploadDataset(form))
104-
)
103+
onSubmit: form => {
104+
dispatch(showNotification('Dataset upload has begun.'));
105+
return dispatch(Action.uploadDataset(form));
106+
}
105107
}
106108
);
107109

0 commit comments

Comments
 (0)