Commit 713a1e28 authored by Alfredo Sumaran's avatar Alfredo Sumaran

Merge branch '25829-update-username-button-remains-disabled-upon-failure' into 'master'

Re-enable submit button after username change failure

Closes #25829

See merge request !8332
parents 23fc1f66 0321c86b
...@@ -41,15 +41,12 @@ ...@@ -41,15 +41,12 @@
} }
beforeUpdateUsername() { beforeUpdateUsername() {
$('.loading-username').show(); $('.loading-username', this).removeClass('hidden');
$(this).find('.update-success').hide();
return $(this).find('.update-failed').hide();
} }
afterUpdateUsername() { afterUpdateUsername() {
$('.loading-username').hide(); $('.loading-username', this).addClass('hidden');
$(this).find('.btn-save').enable(); $('button[type=submit]', this).enable();
return $(this).find('.loading-gif').hide();
} }
onUpdateNotifs(e, data) { onUpdateNotifs(e, data) {
......
---
title: re-enable change username button after failure
merge_request: 8332
author:
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment