Skip to content

Commit

Permalink
[BI-1127] add helper text to required category fields
Browse files Browse the repository at this point in the history
  • Loading branch information
dmeidlin committed Oct 28, 2021
1 parent eac9b89 commit 7c74c0f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/trait/forms/LabelValueRow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
<BasicInputField
v-bind:field-name="'Category'"
v-bind:show-label="false"
v-bind:field-help="canBeRemoved ? undefined : 'Ordinal scales require at least two categories'"
v-bind:placeholder="categoryPlaceholder"
v-bind:value="label"
v-on:input="$emit('label-change', $event)"
Expand Down
1 change: 1 addition & 0 deletions src/components/trait/forms/ValueRow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
<BasicInputField
v-bind:field-name="'Category'"
v-bind:show-label="false"
v-bind:field-help="canBeRemoved ? undefined : 'Nominal scales require at least one category'"
v-bind:placeholder="valuePlaceholder"
v-bind:value="value"
v-on:input="$emit('value-change', $event)"
Expand Down

0 comments on commit 7c74c0f

Please sign in to comment.