Skip to content

TagSpaces is an offline, open source, document manager with tagging support

fix: improving file upload confirmation message

Ilian Sapundshiev39907d61306c
diff --git a/app/reducers/io-actions.ts b/app/reducers/io-actions.ts
index 229f1ca48..4a975e491 100644
--- a/app/reducers/io-actions.ts
+++ b/app/reducers/io-actions.ts
@@ -435,11 +435,13 @@ const actions = {
return true;
});
if (arrFiles.length > 0) {
+ const numberOfFile = arrFiles.length;
dispatch(
AppActions.showNotification(
- 'File ' +
- arrFiles.map(file => file.name).toString() +
- ' successfully imported.',
+ numberOfFile + ' ' + 'file(s) successfully imported.',
+ // 'Files: ' +
+ // arrFiles.map(file => file.name).toString() +
+ // ' successfully imported.',
'default',
true
)