This commit is contained in:
crusader
2018-06-05 20:29:35 +09:00
parent e934900a4a
commit 27b3490d39
11 changed files with 279 additions and 24 deletions

View File

@@ -4,8 +4,6 @@ import { MetaCrawler } from '@overflow/commons-typescript/model/meta';
import { Store, select } from '@ngrx/store';
import { RPCClientError } from '@loafer/ng-rpc';
import * as ListStore from '@overflow/meta/crawler-input-item/store/list';
import { ReadCrawlerInputItemSelector } from '@overflow/meta/crawler-input-item/store';
import { MetaCrawlerInputItem } from '@overflow/commons-typescript/model/meta';
@@ -15,7 +13,7 @@ import { MetaCrawlerInputItem } from '@overflow/commons-typescript/model/meta';
})
export class CrawlerAuthComponent implements OnInit, OnChanges {
inputItems$ = this.listStore.pipe(select(ReadCrawlerInputItemSelector.select('inputs')));
inputItems$;
inputItems: MetaCrawlerInputItem[];
title: string;
@@ -24,7 +22,7 @@ export class CrawlerAuthComponent implements OnInit, OnChanges {
constructor(
private router: Router,
private listStore: Store<ListStore.State>,
private store: Store<any>,
) { }
ngOnInit() {
@@ -77,7 +75,7 @@ export class CrawlerAuthComponent implements OnInit, OnChanges {
}
getCrawlerAuthInputItems() {
this.listStore.dispatch(new ListStore.ReadAll(this.crawler));
// this.listStore.dispatch(new ListStore.ReadAll(this.crawler));
}
testCredentials() {