From 4e9d0cbcc8216769b100a37fac02bbf4a28d482d Mon Sep 17 00:00:00 2001 From: geek Date: Wed, 8 Nov 2017 18:49:11 +0900 Subject: [PATCH] crawlerVender --- src/ts/@overflow/meta/react/CrawlerSelector.tsx | 5 +++++ .../meta/react/components/CrawlerSelector.tsx | 10 ++++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/ts/@overflow/meta/react/CrawlerSelector.tsx b/src/ts/@overflow/meta/react/CrawlerSelector.tsx index 8260ac1..3183525 100644 --- a/src/ts/@overflow/meta/react/CrawlerSelector.tsx +++ b/src/ts/@overflow/meta/react/CrawlerSelector.tsx @@ -17,6 +17,7 @@ import * as CrawlerReadAllByTargetActions from '@overflow/meta/redux/action/craw import * as CrawlerAuthInputsActions from '@overflow/meta/redux/action/crawler_auth_inputs'; import * as asyncRequestActions from '@overflow/commons/redux/action/asyncRequest'; +import MetaInfraType from '../api/model/MetaInfraType'; // FIXME::.... @@ -37,6 +38,10 @@ export function mapDispatchToProps(dispatch: Dispatch): CrawlerSelectorDisp dispatch(asyncRequestActions.request('MetaCrawlerInputItemService', 'readAllByMetaCrawler', CrawlerAuthInputsActions.REQUEST, JSON.stringify(crawler))); }, + onCrawlerReadAllByInfraType: (infraType: MetaInfraType) => { + dispatch(asyncRequestActions.request('MetaInfraVendorService', 'readAllByMetaInfraType', + CrawlerReadAllByTargetActions.REQUEST, JSON.stringify(infraType))); + }, // onCheckCrawlerAuth: (authInfo: string) => { // // dispatch(ReadActions.request(id)); // }, diff --git a/src/ts/@overflow/meta/react/components/CrawlerSelector.tsx b/src/ts/@overflow/meta/react/components/CrawlerSelector.tsx index 92e7085..3633f8e 100644 --- a/src/ts/@overflow/meta/react/components/CrawlerSelector.tsx +++ b/src/ts/@overflow/meta/react/components/CrawlerSelector.tsx @@ -13,6 +13,7 @@ import Target from '@overflow/target/api/model/Target'; import SensorRegistInfo from '@overflow/sensor/api/model/SensorRegistInfo'; import * as Utils from '@overflow/commons/util/Utils'; +import MetaInfraType from '../../api/model/MetaInfraType'; export interface CrawlerSelectorStateProps { metaCralwerList?: MetaCrawler[]; @@ -26,7 +27,7 @@ export interface CrawlerSelectorStateProps { export interface CrawlerSelectorDispatchProps { onCrawlerReadAllByTarget?(target: Target): void; onCrawlerReadAllByMetaCrawler?(crawler: MetaCrawler): void; - + onCrawlerReadAllByInfraType?(infraType: MetaInfraType):void; } export type CrawlerSelectorProps = CrawlerSelectorStateProps & CrawlerSelectorDispatchProps; @@ -55,8 +56,13 @@ export class CrawlerSelector extends React.Component