Skip to content

Commit bd333d0

Browse files
fixed #737 isRequired validations for specs
1 parent ed30b0e commit bd333d0

File tree

4 files changed

+14
-7
lines changed

4 files changed

+14
-7
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@ const sections = [
139139
description: 'Describe your objectives for creating this application',
140140
type: 'textinput',
141141
fieldName: 'name',
142-
validationError: 'Screen name cannot be blank'
142+
validationError: 'Screen name cannot be blank',
143+
validations: 'isRequired'
143144
},
144145
{
145146
icon: 'question',
@@ -148,7 +149,8 @@ const sections = [
148149
description: 'What are the important features/capabilities that the screen provides to your end users?',
149150
type: 'textbox',
150151
fieldName: 'description',
151-
validationError: 'Answer cannot be blank'
152+
validationError: 'Answer cannot be blank',
153+
validations: 'isRequired'
152154
},
153155
{
154156
icon: 'question',

src/config/projectQuestions/avd.v1.1.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,8 @@ const sections = [
137137
description: 'Describe your objectives for creating this application',
138138
type: 'textinput',
139139
fieldName: 'name',
140-
validationError: 'Screen name cannot be blank'
140+
validationError: 'Screen name cannot be blank',
141+
validations: 'isRequired'
141142
},
142143
{
143144
icon: 'question',
@@ -146,7 +147,8 @@ const sections = [
146147
description: 'What are the important features/capabilities that the screen provides to your end users?',
147148
type: 'textbox',
148149
fieldName: 'description',
149-
validationError: 'Answer cannot be blank'
150+
validationError: 'Answer cannot be blank',
151+
validations: 'isRequired'
150152
},
151153
{
152154
icon: 'question',

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@ const sections = [
136136
description: 'Describe your objectives for creating this application',
137137
type: 'textinput',
138138
fieldName: 'name',
139-
validationError: 'Screen name cannot be blank'
139+
validationError: 'Screen name cannot be blank',
140+
validations: 'isRequired'
140141
},
141142
{
142143
icon: 'question',
@@ -145,7 +146,8 @@ const sections = [
145146
description: 'What are the important features/capabilities that the screen provides to your end users?',
146147
type: 'textbox',
147148
fieldName: 'description',
148-
validationError: 'Answer cannot be blank'
149+
validationError: 'Answer cannot be blank',
150+
validations: 'isRequired'
149151
},
150152
{
151153
icon: 'question',

src/projects/detail/components/SpecScreenQuestions.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ const SpecScreenQuestions = ({questions, screen}) => {
2626
name: q.fieldName,
2727
label: q.label,
2828
value: _.get(screen, q.fieldName, undefined),
29-
validationError: q.validationError
29+
validationError: q.validationError,
30+
validations: q.validations
3031
}
3132
let ChildElem = ''
3233
switch (q.type) {

0 commit comments

Comments
 (0)