We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7784ffe commit f155752Copy full SHA for f155752
1 file changed
src/components/Preview.vue
@@ -37,7 +37,7 @@
37
/>
38
<div class="validation-msg">
39
<p
40
- v-if="isNotMinimumCFF"
+ v-if="doesNotHaveRequiredFields"
41
class="invalid"
42
>
43
Your CITATION.cff does not have the minimum fields
@@ -75,7 +75,7 @@ export default defineComponent({
75
return {
76
cffstr,
77
copyToClipboard,
78
- isNotMinimumCFF: computed(() => errors.value
+ doesNotHaveRequiredFields: computed(() => errors.value
79
.map((v) => v.instancePath)
80
.some((i) => i.includes('title') || i.includes('authors') || i.includes('message'))),
81
isValidCFF: computed(() => errors.value.length === 0),
0 commit comments