comparison src/app/feature-extraction-menu/feature-extraction-menu.component.ts @ 325:38f3fe548ac0

Merge pull request #1 from LucasThompson/fix/mobile-safari-high-water Fix/mobile safari high water
author Lucas Thompson <LucasThompson@users.noreply.github.com>
date Tue, 16 May 2017 16:46:32 +0100
parents e433a2da0ada
children 4387175f594b
comparison
equal deleted inserted replaced
319:64dee0c156b1 325:38f3fe548ac0
78 } 78 }
79 return ''; 79 return '';
80 } 80 }
81 81
82 ngOnInit() { 82 ngOnInit() {
83 this.piperService.list().then(this.populateExtractors);
84 this.librariesUpdatedSubscription = 83 this.librariesUpdatedSubscription =
85 this.piperService.librariesUpdated$.subscribe(this.populateExtractors); 84 this.piperService.librariesUpdated$.subscribe(this.populateExtractors);
85 this.piperService.list().then(this.populateExtractors);
86 } 86 }
87 87
88 extract(combinedKey: string): void { 88 extract(combinedKey: string): void {
89 const info: ExtractorOutputInfo = 89 const info: ExtractorOutputInfo =
90 this.extractorsMap.get(combinedKey); 90 this.extractorsMap.get(combinedKey);
92 this.requestOutput.emit(info); 92 this.requestOutput.emit(info);
93 } 93 }
94 } 94 }
95 95
96 load(): void { 96 load(): void {
97 this.piperService.updateAvailableLibraries().subscribe(res => { 97 this.piperService.updateAvailableLibraries();
98 Object.keys(res).forEach(key => this.piperService.load(key));
99 });
100 } 98 }
101 99
102 ngOnDestroy(): void { 100 ngOnDestroy(): void {
103 this.librariesUpdatedSubscription.unsubscribe(); 101 this.librariesUpdatedSubscription.unsubscribe();
104 } 102 }