File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 203203 {% include 'v3/includes/_field_combo.html' with name=user_profile_form.country.name label='Country' options=country_options selected=user_profile_form.country.value placeholder='Select' error=user_profile_form.country.errors.0 %}
204204 {% include 'v3/includes/_field_include.html' with bound_field=user_profile_form.indicate_last_login_method %}
205205 {% include 'v3/includes/_field_include.html' with bound_field=user_profile_form.override_commit_author_name %}
206- {% include 'v3/includes/_field_include.html' with bound_field=user_profile_form.override_commit_author_email %}
207206 </ div >
208207 < hr class ="card__hr " aria-hidden ="true " />
209208 < div class ="card__cta_section ">
349348 if ( response . ok && contentType . includes ( 'application/json' ) ) {
350349 this . saved = true
351350 succeeded = true
351+ // Static, server-rendered field errors (left over from a prior
352+ // failed submit) don't clear themselves on a successful AJAX
353+ // save since they aren't Alpine-reactive. Clear them here.
354+ form . querySelectorAll ( '.field--error' ) . forEach ( ( wrapper ) => {
355+ wrapper . classList . remove ( 'field--error' )
356+ } )
357+ form . querySelectorAll ( 'p.field__error:not([x-show])' ) . forEach ( ( el ) => {
358+ el . remove ( )
359+ } )
352360 }
353361 } catch ( _ ) { }
354362 if ( ! succeeded ) {
Original file line number Diff line number Diff line change @@ -339,10 +339,6 @@ def clean_username(self):
339339 help_text = "Globally replaces your git commit author name with username value set above" ,
340340 required = False ,
341341 )
342- override_commit_author_email = forms .BooleanField (
343- help_text = "Links your login to an existing commit-author email after verification" ,
344- required = False ,
345- )
346342
347343 # Commit Emails
348344 commit_email_formset = V3CommitEmailFormSet (
You can’t perform that action at this time.
0 commit comments