Image error solve update
This commit is contained in:
@ -389,7 +389,7 @@ export class ProfessorComponent implements OnInit, OnDestroy {
|
|||||||
case HttpEventType.UploadProgress:
|
case HttpEventType.UploadProgress:
|
||||||
this.fileUploadStatus.percentage = Math.round(100 * event.loaded / event.total!);
|
this.fileUploadStatus.percentage = Math.round(100 * event.loaded / event.total!);
|
||||||
this.fileUploadStatus.status = 'progress';
|
this.fileUploadStatus.status = 'progress';
|
||||||
break;
|
break;
|
||||||
case HttpEventType.Response:
|
case HttpEventType.Response:
|
||||||
if (event.status === 200) {
|
if (event.status === 200) {
|
||||||
if (this.loggedInProfessor) {
|
if (this.loggedInProfessor) {
|
||||||
|
|||||||
Reference in New Issue
Block a user