post-merge changes

This commit is contained in:
Jonas Winkler
2020-11-22 23:12:24 +01:00
parent d252a1dcda
commit 6cf0b851b7
10 changed files with 437 additions and 99 deletions

View File

@@ -33,9 +33,9 @@ export class UploadFileWidgetComponent implements OnInit {
const formData = new FormData()
formData.append('document', file, file.name)
this.documentService.uploadDocument(formData).subscribe(result => {
this.toastService.showToast(Toast.make("Information", "The document has been uploaded and will be processed by the consumer shortly."))
this.toastService.showInfo("The document has been uploaded and will be processed by the consumer shortly.")
}, error => {
this.toastService.showToast(Toast.makeError("An error has occured while uploading the document. Sorry!"))
this.toastService.showError("An error has occured while uploading the document. Sorry!")
})
});
}