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"
4039 />
4140 <h2 class =" question" >
4241 What do you want citers to do with the information provided in your CITATION.cff file?
5150 v-bind:model-value =" message"
5251 v-bind:error =" messageErrors.length > 0"
5352 v-bind:error-message =" messageErrors.join(', ')"
54- v-bind:placeholder =" messagePlaceHolder"
5553 v-on:update:modelValue =" setMessage"
5654 />
5755 </div >
@@ -85,8 +83,6 @@ export default defineComponent({
8583 })
8684 const { message, title, type, setMessage, setTitle, setType } = useCff ()
8785 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.'
9086 const messageErrors = computed (() => {
9187 return messageQueries
9288 .filter (byError (errors .value ))
@@ -101,17 +97,17 @@ export default defineComponent({
10197 // check if user modified the placeholder, if that is the case, do not update the message
10298 const messagePlaceHolderRegex = / ^ If you use this (?<cfftype >software| dataset), please cite it using the metadata from this file. $ / igd
10399 const isMessageModifiedByApp = messagePlaceHolderRegex .exec (message .value )
100+ const testing = messagePlaceHolderRegex .test (message .value )
101+ console .log (testing )
104102 if (isMessageModifiedByApp ) {
105103 setMessage (` If you use this ${type .value }, please cite it using the metadata from this file. ` )
106104 }
107105 }
108106 return {
109107 message ,
110108 messageErrors ,
111- messagePlaceHolder ,
112109 title ,
113110 titleErrors ,
114- titlePlaceHolder ,
115111 type ,
116112 typeOptions: [
117113 { label: ' Software' , value: ' software' },
0 commit comments