lint login and upload

This commit is contained in:
Mario Romano
2016-05-12 19:11:00 +01:00
parent d1858f54ab
commit 6654563469
78 changed files with 1025 additions and 2928 deletions

View File

@@ -1,4 +1,4 @@
/**
/*!
* @license
* Copyright 2016 Alfresco Software, Ltd.
*
@@ -16,9 +16,9 @@
*/
import {Component, ElementRef, Input} from 'angular2/core';
import {FileModel} from '../models/file.model';
import {TranslatePipe} from 'ng2-translate/ng2-translate';
import { Component, ElementRef, Input } from 'angular2/core';
import { FileModel } from '../models/file.model';
import { TranslatePipe } from 'ng2-translate/ng2-translate';
declare let __moduleName: string;
@@ -47,9 +47,7 @@ export class FileUploadingListComponent {
constructor(public el: ElementRef) {
console.log('filesUploadingList constructor', el);
setInterval(() => {
console.log('Check for async update from drag directive');
}, 1000);
setInterval(() => {console.log('Check for async update from drag directive'); }, 1000);
}
/**
@@ -57,9 +55,9 @@ export class FileUploadingListComponent {
*
* @param {string} id - FileModel id of the file to abort.
*/
abort(id): void {
abort(id: string): void {
let file = this.filesUploadingList.filter((uploadingFileModel) => {
return uploadingFileModel.id == id;
return uploadingFileModel.id === id;
});
file[0].setAbort();
}