|
20 | 20 | standout |
21 | 21 | title="The person's given names." |
22 | 22 | v-bind:model-value="givenNames" |
23 | | - v-bind:error="givenNamesError.hasError" |
24 | | - v-bind:error-message="givenNamesError.messages.join(', ')" |
| 23 | + v-bind:error="false" |
| 24 | + v-bind:error-message="''" |
25 | 25 | v-on:update:modelValue="$emit('update', 'givenNames', $event)" |
26 | 26 | ref="givenNamesRef" |
27 | 27 | /> |
|
41 | 41 | standout |
42 | 42 | title="The person's name particle, e.g., a nobiliary particle or a [preposition] meaning 'of' or 'from' (for example 'von' in 'Alexander von Humboldt')." |
43 | 43 | v-bind:model-value="nameParticle" |
44 | | - v-bind:error="nameParticleError.hasError" |
45 | | - v-bind:error-message="nameParticleError.messages.join(', ')" |
| 44 | + v-bind:error="false" |
| 45 | + v-bind:error-message="''" |
46 | 46 | v-on:update:modelValue="$emit('update', 'nameParticle', $event)" |
47 | 47 | > |
48 | 48 | <SchemaGuideLink |
|
59 | 59 | standout |
60 | 60 | title="The person's family names." |
61 | 61 | v-bind:model-value="familyNames" |
62 | | - v-bind:error="familyNamesError.hasError" |
63 | | - v-bind:error-message="familyNamesError.messages.join(', ')" |
| 62 | + v-bind:error="false" |
| 63 | + v-bind:error-message="''" |
64 | 64 | v-on:update:modelValue="$emit('update', 'familyNames', $event)" |
65 | 65 | > |
66 | 66 | <SchemaGuideLink |
|
77 | 77 | standout |
78 | 78 | title="The person's name suffix, e.g. 'Jr.' for Sammy Davis Jr. or 'III' for Frank Edwin Wright III." |
79 | 79 | v-bind:model-value="nameSuffix" |
80 | | - v-bind:error="nameSuffixError.hasError" |
81 | | - v-bind:error-message="nameSuffixError.messages.join(', ')" |
| 80 | + v-bind:error="false" |
| 81 | + v-bind:error-message="''" |
82 | 82 | v-on:update:modelValue="$emit('update', 'nameSuffix', $event)" |
83 | 83 | > |
84 | 84 | <SchemaGuideLink |
|
104 | 104 | title="The person's email address." |
105 | 105 | type="email" |
106 | 106 | v-bind:model-value="email" |
107 | | - v-bind:error="emailError.hasError" |
108 | | - v-bind:error-message="emailError.messages.join(', ')" |
| 107 | + v-bind:error="false" |
| 108 | + v-bind:error-message="''" |
109 | 109 | v-on:update:modelValue="$emit('update', 'email', $event)" |
110 | 110 | /> |
111 | 111 | </div> |
|
129 | 129 | standout |
130 | 130 | title="The person's affiliation." |
131 | 131 | v-bind:model-value="affiliation" |
132 | | - v-bind:error="affiliationError.hasError" |
133 | | - v-bind:error-message="affiliationError.messages.join(', ')" |
| 132 | + v-bind:error="false" |
| 133 | + v-bind:error-message="''" |
134 | 134 | v-on:update:modelValue="$emit('update', 'affiliation', $event)" |
135 | 135 | /> |
136 | 136 | <q-input |
|
143 | 143 | standout |
144 | 144 | title="The person's ORCID identifier." |
145 | 145 | v-bind:model-value="orcid" |
146 | | - v-bind:error="orcidError.hasError" |
147 | | - v-bind:error-message="orcidError.messages.join(', ')" |
| 146 | + v-bind:error="false" |
| 147 | + v-bind:error-message="''" |
148 | 148 | v-on:update:modelValue="$emit('update', 'orcid', $event)" |
149 | 149 | /> |
150 | 150 | </div> |
151 | 151 |
|
152 | 152 | <q-banner |
153 | | - v-if="authorErrors.messages.length > 0" |
| 153 | + v-if="false" |
154 | 154 | class="bg-warning text-negative" |
155 | 155 | > |
156 | 156 | <div |
157 | 157 | v-bind:key="authindex" |
158 | | - v-for="(screenMessage, authindex) in authorErrors.messages" |
| 158 | + v-for="(screenMessage, authindex) in []" |
159 | 159 | > |
160 | 160 | {{ screenMessage }} |
161 | 161 | </div> |
|
197 | 197 |
|
198 | 198 | <script lang="ts"> |
199 | 199 | /* eslint-disable @typescript-eslint/restrict-template-expressions */ |
200 | | -import { computed, defineComponent, onMounted, ref } from 'vue' |
201 | | -import { getMyErrors } from 'src/store/validator' |
202 | | -import { authorErrors } from 'src/author-errors' |
| 200 | +import { defineComponent, onMounted, ref } from 'vue' |
203 | 201 | import SchemaGuideLink from './SchemaGuideLink.vue' |
204 | 202 |
|
205 | 203 | export default defineComponent({ |
@@ -248,15 +246,7 @@ export default defineComponent({ |
248 | 246 | givenNamesRef.value?.focus() |
249 | 247 | }) |
250 | 248 | return { |
251 | | - givenNamesRef, |
252 | | - givenNamesError: computed(() => getMyErrors(`/authors/${props.index}/given-names`)), |
253 | | - nameParticleError: computed(() => getMyErrors(`/authors/${props.index}/name-particle`)), |
254 | | - familyNamesError: computed(() => getMyErrors(`/authors/${props.index}/family-names`)), |
255 | | - nameSuffixError: computed(() => getMyErrors(`/authors/${props.index}/name-suffix`)), |
256 | | - emailError: computed(() => getMyErrors(`/authors/${props.index}/email`)), |
257 | | - affiliationError: computed(() => getMyErrors(`/authors/${props.index}/affiliation`)), |
258 | | - orcidError: computed(() => getMyErrors(`/authors/${props.index}/orcid`)), |
259 | | - authorErrors: computed(() => authorErrors(props.index)) |
| 249 | + givenNamesRef |
260 | 250 | } |
261 | 251 | }, |
262 | 252 | emits: ['closePressed', 'removePressed', 'update', 'moveUp', 'moveDown'], |
|
0 commit comments