diff --git a/src/ts/@overflow/sensor/react/SensorConfiguration.tsx b/src/ts/@overflow/sensor/react/SensorConfiguration.tsx index 74dc63b..94ac459 100644 --- a/src/ts/@overflow/sensor/react/SensorConfiguration.tsx +++ b/src/ts/@overflow/sensor/react/SensorConfiguration.tsx @@ -18,7 +18,7 @@ import * as RegistActions from '../redux/action/regist'; import * as asyncRequestActions from '@overflow/commons/redux/action/asyncRequest'; import * as targetListActions from '@overflow/target/redux/action/read_all_by_probe'; import * as readActionType from '@overflow/infra/redux/action/read'; - +import PageParams from '@overflow/commons/api/model/PageParams'; // FIXME::.... export function mapStateToProps(state: any, props: any): SensorConfigurationStateProps { @@ -31,9 +31,11 @@ export function mapStateToProps(state: any, props: any): SensorConfigurationStat export function mapDispatchToProps(dispatch: Dispatch): SensorConfigurationDispatchProps { return { - onReadAllTargetByDomain: (domain: Domain) => { - dispatch(asyncRequestActions.request('InfraService', 'readAllByDomain', - targetListActions.REQUEST, JSON.stringify(domain), '0', '10')); + onReadAllTargetByDomain: (domain: Domain, pageParams: PageParams) => { + // dispatch(asyncRequestActions.request('InfraService', 'readAllByDomain', + // targetListActions.REQUEST, JSON.stringify(domain), '0', '10')); + dispatch(asyncRequestActions.request('InfraService', 'readAllByDomain', targetListActions.REQUEST, + JSON.stringify(domain), JSON.stringify(pageParams))); }, onReadInfra: (infraId: number) => { dispatch(asyncRequestActions.request('InfraService', 'read', readActionType.REQUEST, infraId)); diff --git a/src/ts/@overflow/sensor/react/components/SensorConfiguration.tsx b/src/ts/@overflow/sensor/react/components/SensorConfiguration.tsx index 9382aa1..f881b1f 100644 --- a/src/ts/@overflow/sensor/react/components/SensorConfiguration.tsx +++ b/src/ts/@overflow/sensor/react/components/SensorConfiguration.tsx @@ -33,6 +33,7 @@ import SensorItemTree from '@overflow/meta/react/SensorItemTree'; import CrawlerSelectorContainer from '@overflow/meta/react/CrawlerSelector'; import SensorConfigStepperContainer from '../SensorConfigStepper'; +import PageParams from '@overflow/commons/api/model/PageParams'; export interface SensorConfigurationStateProps { infraId?: number; @@ -41,7 +42,7 @@ export interface SensorConfigurationStateProps { } export interface SensorConfigurationDispatchProps { - onReadAllTargetByDomain?(domain: Domain): void; + onReadAllTargetByDomain?(domain: Domain, pageParams: PageParams): void; onReadInfra?(infraId: number): void; } @@ -65,7 +66,13 @@ export class SensorConfiguration extends React.Component