comparison src/app/feature-extraction-menu/feature-extraction-menu.component.ts @ 100:bf8826d4e2c6

Use @angular/material select component.
author Lucas Thompson <dev@lucas.im>
date Thu, 02 Mar 2017 15:06:24 +0000
parents 2c3fe51ad1f0
children 53ea6406d601
comparison
equal deleted inserted replaced
99:c702b208a527 100:bf8826d4e2c6
68 this.piperService.list().then(this.populateExtractors); 68 this.piperService.list().then(this.populateExtractors);
69 this.librariesUpdatedSubscription = this.piperService.librariesUpdated$.subscribe(this.populateExtractors); 69 this.librariesUpdatedSubscription = this.piperService.librariesUpdated$.subscribe(this.populateExtractors);
70 } 70 }
71 71
72 extract(combinedKey: string): void { 72 extract(combinedKey: string): void {
73 this.requestOutput.emit(this.extractorsMap.get(combinedKey)); 73 const info: ExtractorOutputInfo =
74 this.extractorsMap.get(combinedKey);
75 if (info) {
76 this.requestOutput.emit(info);
77 }
74 } 78 }
75 79
76 load(): void { 80 load(): void {
77 this.piperService.updateAvailableLibraries().subscribe(res => { 81 this.piperService.updateAvailableLibraries().subscribe(res => {
78 Object.keys(res).forEach(key => this.piperService.load(key)); 82 Object.keys(res).forEach(key => this.piperService.load(key));