Skip to content

Commit

Permalink
fix ts lint
Browse files Browse the repository at this point in the history
  • Loading branch information
lharzenetter committed Jul 12, 2018
1 parent 3c69d3e commit 0a1a0d4
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
*
* SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
*******************************************************************************/
import {Component, EventEmitter, Input, OnChanges, OnInit, Output} from '@angular/core';
import {isNullOrUndefined} from 'util';
import {WineryUploaderService} from './wineryUploader.service';
import {WineryNotificationService} from '../wineryNotificationModule/wineryNotification.service';
import {FileUploader} from 'ng2-file-upload';
import { Component, EventEmitter, Input, OnChanges, OnInit, Output } from '@angular/core';
import { isNullOrUndefined } from 'util';
import { WineryUploaderService } from './wineryUploader.service';
import { WineryNotificationService } from '../wineryNotificationModule/wineryNotification.service';
import { FileUploader } from 'ng2-file-upload';

/**
* This component provides a modal popup with a <code>title</code> and optional progress bar <code>showProgress</code>
Expand Down Expand Up @@ -118,7 +118,7 @@ export class WineryUploaderComponent implements OnInit, OnChanges {
this.service.uploader.onBeforeUploadItem = (item) => {
item.withCredentials = false;
};

this.service.uploader.onCompleteItem = (item: any, response: string, status: number, headers: any) => {
this.loading = false;

Expand All @@ -139,7 +139,7 @@ export class WineryUploaderComponent implements OnInit, OnChanges {
this.onError.emit(new Error('Error while uploading file ' + item.file.name));
}

return {item, response, status, headers};
return { item, response, status, headers };
};

this.service.uploader.onCompleteAll = () => {
Expand Down

0 comments on commit 0a1a0d4

Please sign in to comment.