Processing Please wait...
this.settingsservice.bulkUsers(o)
.subscribe((data: any) => {
console.log("success add bulk user details", data);
this.ejDialog.hide();
if (data.failedUsers.length > 0) {
this.toasts = [
{ title: 'information !', content: 'Created with some errors. Please check..', cssClass: 'e-toast-info', timeOut: 0, showCloseButton: true }
];
} else {
this.toasts = [
{ title: 'Success !', content: 'Successfully Updated.', cssClass: 'e-toast-success' }
];
}
this.element.show(this.toasts[0]);
},
err => {
console.log("error", err);
this.toasts = [
{
title: 'Error !', content: 'An error occurred while submitting your data.', cssClass: 'e-toast-danger', timeOut: 0, showCloseButton: true
},
];
this.element.show(this.toasts[0]);
}
);