Skip to content

Commit

Permalink
[imageupload] imageupload
Browse files Browse the repository at this point in the history
  • Loading branch information
greengerong committed Dec 17, 2017
1 parent c9ffff2 commit 82f8c02
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/app/exports/file-upload/file-upload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export class FileUpload implements AfterViewInit {
.catch((error) => this.onFileUploadError(fileItem, error));
}

onFileUploadSuccess(fileItem, res): Observable<any> {
protected onFileUploadSuccess(fileItem, res): Observable<any> {
fileItem.uploadResponse = res;
this.selectFiles = this.selectFiles.filter(item => item !== fileItem);
this.uploadFiles = [...(this.uploadFiles || []), fileItem];
Expand All @@ -179,7 +179,7 @@ export class FileUpload implements AfterViewInit {
return of({ result: res, success: true });
}

onFileUploadError(fileItem, error): Observable<any> {
protected onFileUploadError(fileItem, error): Observable<any> {
this.errors.push(`${fileItem.name}: ${error.error || error.statusText}`);
this.fileUploadError.emit({
name: fileItem.name,
Expand Down
2 changes: 1 addition & 1 deletion src/app/exports/image-upload/image-upload.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export class ImageUploadComponent extends FileUpload {
}


onFileUploadError(fileItem, error): Observable<any> {
protected onFileUploadError(fileItem, error): Observable<any> {
this.selectFiles = this.selectFiles.filter(item => item !== fileItem);
return super.onFileUploadError(fileItem, error);
}
Expand Down

0 comments on commit 82f8c02

Please sign in to comment.