Confirm user button in admin area only works on "Account" tab
Summary
In !64812 (merged) we moved the Confirm user
button to the header which made it available on all the tabs. Due to some missing JavaScript the Confirm user
currently only works on the Account
page.
Steps to reproduce
- Login as an Admin (
root
user in GDK) - Navigate to
Menu
->Admin
->Users
and note the username of one of the users - In your terminal in the
gdk/gitlab
directory runbin/rails console
- Run the following commands
user = User.find_by_username('<user name>')
user.confirmed_at = nil
user.save
- Navigate to
Menu
->Admin
->Users
and choose that user - There should be a
Confirm user
button in the header - Navigate to any tab other than the
Account
tab and click theConfirm user
button
What is the current bug behavior?
Confirm user
button only works on Account
tab
What is the expected correct behavior?
Confirm user
button should work on all tabs
Relevant logs and/or screenshots
Possible fixes
Load required JavaScript for confirmation modal to work