Skip to content

Commit 8c8d8f3

Browse files
author
Vikas Agarwal
committed
Github issue#1133, Chatbot: "Save changes" button is enabled, but not working when validation is triggered
— Removed the text fields from being required in project edit — Fixed bug which was enabling the submit button even when there were validation errors
1 parent 8bd1b81 commit 8c8d8f3

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/config/projectQuestions/ibm_chatbot.v1.0.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,23 +95,20 @@ const sections = [
9595
},
9696
{
9797
icon: 'question',
98-
required: true,
9998
title: 'Will the chatbot need to access data from any systems to support the capabilities you listed above? If so, please list the systems below.',
10099
description: '',
101100
type: 'textbox',
102101
fieldName: 'details.appDefinition.integrationSystems'
103102
},
104103
{
105104
icon: 'question',
106-
required: true,
107105
title: 'Do you have any example agent conversations you can provide? If so, please paste them or any links to documents below (you’ll be able to upload documents later).',
108106
description: '',
109107
type: 'textbox',
110108
fieldName: 'details.appDefinition.existingAgentScripts'
111109
},
112110
{
113111
icon: 'question',
114-
required: true,
115112
title: 'Are you planning to transfer conversations to human agents? If so, please list the agents’ communication tools (e.g., Slack, LiveAgent, Intercom, etc.).',
116113
description: '',
117114
type: 'textbox',

src/projects/detail/components/EditProjectForm.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ class EditProjectForm extends Component {
204204
/>
205205
<div className="section-footer section-footer-spec">
206206
<button className="tc-btn tc-btn-primary tc-btn-md"
207-
type="submit" disabled={(!this.isChanged() || this.state.isSaving) || anySectionInvalid}
207+
type="submit" disabled={(!this.isChanged() || this.state.isSaving) || anySectionInvalid || !this.state.canSubmit}
208208
>Save Changes</button>
209209
</div>
210210
</div>

0 commit comments

Comments
 (0)