gitlab-org--gitlab-foss/app/views/profiles/update_username.js.haml
2013-10-09 16:43:24 +03:00

6 lines
186 B
Text

- if @user.valid?
:plain
new Flash("Username sucessfully changed", "notice")
- else
:plain
new Flash("Username change failed - #{@user.errors.full_messages.first}", "alert")