We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cc6d8ca + 738156b commit 49a676dCopy full SHA for 49a676d
src/app/components/import-data-dialog/import-data-dialog.component.ts
@@ -119,8 +119,9 @@ export class ImportDataDialogComponent implements OnInit {
119
numberOfSucceed += (!!v && v.toString().toLowerCase().indexOf('err') < 0) ? 1 : 0;
120
});
121
numberOfSucceed -= this.flushDB ? 1 : 0;
122
- this.util.showMessage(`${numberOfSucceed} row(s) are imported successfully, ${totalRow
123
- - numberOfSucceed} row(s) fail.`);
+ const numberOfFailed = totalRow - numberOfSucceed;
+ this.util.showMessage(`${numberOfSucceed} row${numberOfSucceed !== 1 ? 's were' : ' was'} imported
124
+ successfully, ${numberOfFailed} row${numberOfFailed !== 1 ? 's have' : ' has'} failed.`);
125
this.dialogRef.close();
126
this._store.dispatch(new ReqFetchTree({id: this.instanceId}));
127
}, err => {
0 commit comments