member_webapp/@overflow/meta/container/meta-crawler-container.component.ts

35 lines
1.1 KiB
TypeScript
Raw Normal View History

2018-05-29 11:53:04 +00:00
import { Component, OnInit, OnDestroy } from '@angular/core';
import { Store, select } from '@ngrx/store';
import { Observable, Subscription } from 'rxjs';
import { NoAuthProbe } from '@overflow/commons-typescript/model/noauth';
import { AuthContainerSelector } from '@overflow/shared/auth/store';
import { Domain, DomainMember } from '@overflow/commons-typescript/model/domain';
import { ConfirmationService } from 'primeng/primeng';
import { MessageService } from 'primeng/components/common/messageservice';
import { RPCClientError } from '@loafer/ng-rpc';
import { MetaCrawler } from '@overflow/commons-typescript/model/meta';
import { MetaCrawlerEntitySelector } from '../store';
@Component({
selector: 'of-meta-crawler-container',
templateUrl: './meta-crawler-container.component.html'
})
export class MetaCrawlerContainerComponent implements OnInit, OnDestroy {
metaCrawlers$: Observable<MetaCrawler[]>;
constructor(
private store: Store<any>,
) {
}
ngOnInit() {
this.metaCrawlers$ = this.store.pipe(select(MetaCrawlerEntitySelector.selectAll));
}
ngOnDestroy(): void {
}
}