Skip to content

Commit cf32742

Browse files
committed
add placeholder text for title and message fields
1 parent f7937c5 commit cf32742

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/components/ScreenStart.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
v-bind:error="titleErrors.length > 0"
3737
v-bind:error-message="titleErrors.join(', ')"
3838
v-on:update:modelValue="setTitle"
39+
v-bind:placeholder="titlePlaceHolder"
3940
/>
4041
<h2 class="question">
4142
What do you want citers to do with the information provided in your CITATION.cff file?
@@ -50,10 +51,10 @@
5051
v-bind:model-value="message"
5152
v-bind:error="messageErrors.length > 0"
5253
v-bind:error-message="messageErrors.join(', ')"
54+
v-bind:placeholder="messagePlaceHolder"
5355
v-on:update:modelValue="setMessage"
5456
/>
5557
</div>
56-
5758
<div id="form-button-bar">
5859
<StepperActions />
5960
</div>
@@ -84,6 +85,8 @@ export default defineComponent({
8485
})
8586
const { message, title, type, setMessage, setTitle, setType } = useCff()
8687
const { errors } = useValidation()
88+
const titlePlaceHolder = 'The name of the software or dataset.'
89+
const messagePlaceHolder = 'Let the readers know what to do with the citation metadata.'
8790
const messageErrors = computed(() => {
8891
return messageQueries
8992
.filter(byError(errors.value))
@@ -105,8 +108,10 @@ export default defineComponent({
105108
return {
106109
message,
107110
messageErrors,
111+
messagePlaceHolder,
108112
title,
109113
titleErrors,
114+
titlePlaceHolder,
110115
type,
111116
typeOptions: [
112117
{ label: 'Software', value: 'software' },

0 commit comments

Comments
 (0)