Skip to content

Commit a8b4baf

Browse files
committed
add textarea and alert
1 parent 029ca66 commit a8b4baf

2 files changed

Lines changed: 17 additions & 1 deletion

File tree

src/components/Cards/CreateWiki.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,11 @@ export default {
151151
domain: domainToSubmit,
152152
sitename: this.stepOne.sitename,
153153
username: this.stepOne.username,
154-
profile: profileJsonString
154+
profile: profileJsonString,
155+
knowledgeEquityResponse: {
156+
selectedOption: this.stepFour.selectedOption,
157+
freeTextResponse: this.stepFour.freeTextResponse
158+
}
155159
}
156160
)
157161
.then(wikiDetails => this.createSuccess(wikiDetails))

src/components/Cards/KnowledgeEquityCreateWikiWizardStep.vue

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,18 @@
2929
<v-radio value="unsure" label="I'm not sure"/>
3030
<v-radio value="unsaid" label="I prefer not to say"/>
3131
</v-radio-group>
32+
<v-textarea
33+
placeholder="If you’d like, please tell us in what way(s). For example, through the knowledge it contributes and/or the people holding and sharing it."
34+
counter="3000"
35+
v-model="value.freeTextResponse"
36+
:rules="[() => !!(value.freeTextResponse && value.freeTextResponse.length < 3001) || 'Text must be 3000 characters or less.' ]"
37+
></v-textarea>
38+
<v-alert
39+
outlined
40+
type="warning"
41+
>
42+
Please avoid sharing any personal or sensitive information. This information will be visible to WMDE employees and external members of the review committee.
43+
</v-alert>
3244
</v-form>
3345
</v-card-text>
3446

0 commit comments

Comments
 (0)