This commit is contained in:
GotPPay
2018-01-16 13:38:05 +01:00
parent e5783740cf
commit 389a71b05a
2 changed files with 6 additions and 6 deletions

View File

@@ -28,13 +28,13 @@ class IntentDetails extends Component {
id="intent name"
lineDirection="center"
placeholder="Intent name"
label="Intent name"
label="Question name"
className="md-cell md-cell--bottom IntentDetailsInputBoxes"
onChange={this.handleIntentNameEdit}
maxLength={INTENT_NAME_MAX_LENGTH}
value={this.state.intent.intentName} />
</div>
<h5 className="QuestionTitle">Questions</h5>
<h5 className="QuestionTitle">Question variants</h5>
{
this.state.intent.questions.map((question, index)=>{
return (
@@ -68,8 +68,8 @@ class IntentDetails extends Component {
}
<br></br>
<br></br>
<Button className="IntentDetailsButton" flat primary onClick={()=>{this.props.onDeleteIntentClick(this.state.intent)}} disabled={this.props.waiting}>Delete intent</Button>
<Button className="IntentDetailsButton" flat primary swapTheming onClick={this.addQuestion} disabled={this.props.waiting}>Add question</Button>
<Button className="IntentDetailsButton" flat primary onClick={()=>{this.props.onDeleteIntentClick(this.state.intent)}} disabled={this.props.waiting}>Delete question</Button>
<Button className="IntentDetailsButton" flat primary swapTheming onClick={this.addQuestion} disabled={this.props.waiting}>Add variant</Button>
<Button className="IntentDetailsButton" flat primary swapTheming onClick={()=>{this.props.onSaveIntentClick(this.state.intent)}} disabled={this.props.waiting}>Save</Button>
</div>

View File

@@ -30,7 +30,7 @@ class IntentList extends Component {
<div className="IntentList-title">
<h3>Intents</h3>
<h3>Questions</h3>
</div>
{
this.state.intents.map((intent,index)=>{
@@ -45,7 +45,7 @@ class IntentList extends Component {
<br></br>
<Button className="AddIntent" flat primary swapTheming
onClick={this.props.onAddIntentClick}
disabled={this.props.waiting}>Add intent</Button>
disabled={this.props.waiting}>Add question</Button>
</div>
);
}