Skip to content
Snippets Groups Projects
Commit 9087cd65 authored by paf's avatar paf
Browse files

a lil bit of lintin'

parent a23aba07
No related branches found
No related tags found
No related merge requests found
...@@ -42,25 +42,25 @@ export class IqbFilesUploadQueueComponent implements OnDestroy { ...@@ -42,25 +42,25 @@ export class IqbFilesUploadQueueComponent implements OnDestroy {
@Output() uploadCompleteEvent = new EventEmitter<IqbFilesUploadQueueComponent>(); @Output() uploadCompleteEvent = new EventEmitter<IqbFilesUploadQueueComponent>();
add(file: any) { add(file: any): void {
this.files.push(file); this.files.push(file);
} }
public removeAll() { public removeAll(): void {
this.files.splice(0, this.files.length); this.files.splice(0, this.files.length);
} }
ngOnDestroy() { ngOnDestroy(): void {
if (this.files) { if (this.files) {
this.removeAll(); this.removeAll();
} }
} }
removeFile(fileToRemove: IqbFilesUploadComponent) { removeFile(fileToRemove: IqbFilesUploadComponent): void {
this.files.splice(fileToRemove.id, 1); this.files.splice(fileToRemove.id, 1);
} }
analyseStatus() { analyseStatus(): void {
let someoneiscomplete = false; let someoneiscomplete = false;
let someoneisbusy = false; let someoneisbusy = false;
let someoneisready = false; let someoneisready = false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment