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 @@
}
beforeUpdateUsername() {
$('.loading-username').show();
$(this).find('.update-success').hide();
return $(this).find('.update-failed').hide();
$('.loading-username', this).removeClass('hidden');
}
afterUpdateUsername() {
$('.loading-username').hide();
$(this).find('.btn-save').enable();
return $(this).find('.loading-gif').hide();
$('.loading-username', this).addClass('hidden');
$('button[type=submit]', this).enable();
}
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