Skip to content

Commit 8d5a99f

Browse files
committed
updated theme color error and fixed copilot review
1 parent 9025e23 commit 8d5a99f

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

  • contentcuration/contentcuration/frontend/accounts/pages

contentcuration/contentcuration/frontend/accounts/pages/Create.vue

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,12 +120,14 @@
120120
:invalidText="errors.other_use.length ? errors.other_use[0] : ''"
121121
:showInvalidText="true"
122122
class="conditional-field-textarea"
123+
@input="resetErrors('other_use')"
123124
@blur="validateField('other_use')"
124125
/>
125126
</KTransition>
126127
</div>
127128
<div
128129
v-if="!valid && (!form.uses || !form.uses.length)"
130+
:style="{ color: $themeTokens.error }"
129131
class="field-error"
130132
>
131133
{{ $tr('fieldRequired') }}
@@ -139,6 +141,7 @@
139141
/>
140142
<div
141143
v-if="!valid && (!form.locations || !form.locations.length)"
144+
:style="{ color: $themeTokens.error }"
142145
class="field-error"
143146
>
144147
{{ $tr('fieldRequired') }}
@@ -176,6 +179,7 @@
176179
</KTransition>
177180
<div
178181
v-if="!valid && (!form.source || !form.source.value)"
182+
:style="{ color: $themeTokens.error }"
179183
class="field-error"
180184
>
181185
{{ $tr('fieldRequired') }}
@@ -193,6 +197,7 @@
193197
<div
194198
v-if="!acceptedAgreement"
195199
key="agreement-error"
200+
:style="{ color: $themeTokens.error }"
196201
class="policy-error"
197202
>
198203
{{ $tr('ToSRequiredMessage') }}
@@ -409,7 +414,9 @@
409414
const sourceValue =
410415
cleanedData[key] && cleanedData[key].value != null
411416
? cleanedData[key].value
412-
: cleanedData[key] || '';
417+
: typeof cleanedData[key] === 'string'
418+
? cleanedData[key]
419+
: '';
413420
if (sourceValue === sources.ORGANIZATION) {
414421
cleanedData[key] = `${cleanedData.organization} (organization)`;
415422
} else if (sourceValue === sources.CONFERENCE) {
@@ -738,7 +745,6 @@
738745
margin-top: 4px;
739746
margin-bottom: 8px;
740747
font-size: 12px;
741-
color: #b00020;
742748
}
743749
744750
.policy-checkbox {
@@ -751,7 +757,6 @@
751757
margin-bottom: 4px;
752758
margin-left: 40px;
753759
font-size: 12px;
754-
color: #b00020;
755760
}
756761
757762
.span-spacing {

0 commit comments

Comments
 (0)