Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/profiles/update_username.js.haml')
-rw-r--r--app/views/profiles/update_username.js.haml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/profiles/update_username.js.haml b/app/views/profiles/update_username.js.haml
index abd90269c93..249680bcab6 100644
--- a/app/views/profiles/update_username.js.haml
+++ b/app/views/profiles/update_username.js.haml
@@ -1,6 +1,6 @@
- if @user.valid?
:plain
- $('.update-username .update-success').show();
+ new Flash("Username sucessfully changed", "notice")
- else
:plain
- $('.update-username .update-failed').show();
+ new Flash("Username change failed - #{@user.errors.full_messages.first}", "alert")