Added timeout option for notification component

This commit is contained in:
Alex 2022-08-26 10:01:47 -07:00
parent bef38c670c
commit 44ccb1eec1
No known key found for this signature in database
GPG key ID: 53CD082B3A5E1082
3 changed files with 27 additions and 7 deletions

View file

@ -38,9 +38,10 @@ export const openFileUploadDialog = (uploadType: UploadType) => {
if (files.length > 50) {
notificationController.show({
type: NotificationType.Error,
message: `Cannot upload more than 50 files at a time - you are uploading ${files.length} files.
Please use the CLI tool if you need to upload more than 50 files.`,
type: NotificationType.Error
timeout: 5000
});
return;