fixed delete bug, code refactoring, improved UI
This commit is contained in:
@@ -18,21 +18,25 @@ class IntentList extends Component {
|
||||
return (
|
||||
<div className="IntentList">
|
||||
<Button className={this.props.selectedIndex===-2 ? "LaunchRequest-selected" : "LaunchRequest"} flat primary
|
||||
onClick={this.props.onLaunchRequestClick}>Launch request</Button>
|
||||
onClick={this.props.onLaunchRequestClick}
|
||||
disabled={this.props.waiting} >Launch request</Button>
|
||||
<div className="IntentList-title">
|
||||
<h3>Intents</h3>
|
||||
</div>
|
||||
{
|
||||
this.state.intents.map((intent,index)=>{
|
||||
return <IntentItem
|
||||
key={index} intent={intent} index={index}
|
||||
key={intent.intentName} intent={intent} index={index}
|
||||
selectedIndex={this.props.selectedIndex}
|
||||
onClick={this.state.onIntentClick}>
|
||||
onClick={this.state.onIntentClick}
|
||||
waiting={this.props.waiting}>
|
||||
</IntentItem>
|
||||
})
|
||||
}
|
||||
<br></br>
|
||||
<Button className={"AddIntent"} flat primary swapTheming onClick={this.props.onAddIntentClick}>Add intent</Button>
|
||||
<Button className={"AddIntent"} flat primary swapTheming
|
||||
onClick={this.props.onAddIntentClick}
|
||||
disabled={this.props.waiting}>Add intent</Button>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user