Skip to content

Commit

Permalink
Added notification when tsv imported successfully
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinmarete committed Oct 5, 2024
1 parent d090004 commit 6efceb6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/workspace-data/Data.js
Original file line number Diff line number Diff line change
Expand Up @@ -1170,10 +1170,13 @@ export const WorkspaceData = _.flow(
uploadingFile &&
h(EntityUploader, {
onDismiss: () => setUploadingFile(false),
onSuccess: () => {
onSuccess: (recordType) => {
setUploadingFile(false);
forceRefresh();
loadMetadata();
notify('success', `Data imported successfully to table ${recordType}.`, {
id: `${recordType}_success`,
});
},
namespace,
name,
Expand Down

0 comments on commit 6efceb6

Please sign in to comment.