sensor config target ing
This commit is contained in:
parent
e4437479c4
commit
b823b54a98
|
@ -1,6 +1,26 @@
|
|||
import * as React from 'react';
|
||||
import { Icon, Step, Button, Table, Radio, Form, Container, Checkbox } from 'semantic-ui-react';
|
||||
import { Grid, Image, Label, Segment, Dropdown, Input, List, Accordion, Loader } from 'semantic-ui-react';
|
||||
import {
|
||||
Icon,
|
||||
Step,
|
||||
Button,
|
||||
Table,
|
||||
Radio,
|
||||
Form,
|
||||
Container,
|
||||
Checkbox,
|
||||
} from 'semantic-ui-react';
|
||||
import {
|
||||
Grid,
|
||||
Image,
|
||||
Label,
|
||||
Segment,
|
||||
Dropdown,
|
||||
Input,
|
||||
List,
|
||||
Accordion,
|
||||
Loader,
|
||||
DropdownItemProps,
|
||||
} from 'semantic-ui-react';
|
||||
|
||||
import MetaCrawler from '@overflow/meta/api/model/MetaCrawler';
|
||||
import Infra from '@overflow/infra/api/model/Infra';
|
||||
|
@ -73,6 +93,8 @@ export interface ConfigStepperState {
|
|||
|
||||
export class ConfigStepper extends React.Component<ConfigStepperProps, ConfigStepperState> {
|
||||
|
||||
private selectOptions: Array<DropdownItemProps>;
|
||||
|
||||
constructor(props: ConfigStepperProps, context: ConfigStepperState) {
|
||||
super(props, context);
|
||||
this.state = {
|
||||
|
@ -80,6 +102,24 @@ export class ConfigStepper extends React.Component<ConfigStepperProps, ConfigSte
|
|||
};
|
||||
}
|
||||
|
||||
public convertInfraList(): void {
|
||||
|
||||
let selectionOptions: Array<DropdownItemProps> = new Array;
|
||||
|
||||
for (let infra of this.props.infraList) {
|
||||
|
||||
let option = {
|
||||
// key: crawler.id,
|
||||
text: infra.target.displayName,
|
||||
value: infra.target.id,
|
||||
icon: 'check', // or close?
|
||||
};
|
||||
selectionOptions.push(option);
|
||||
|
||||
}
|
||||
this.selectOptions = selectionOptions;
|
||||
}
|
||||
|
||||
public handleActive(idx: number): boolean {
|
||||
if (this.state.currentStep === idx) {
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue
Block a user