diff options
author | Winnie Hellmann <winnie@gitlab.com> | 2018-01-03 12:21:17 +0300 |
---|---|---|
committer | Winnie Hellmann <winnie@gitlab.com> | 2018-01-05 14:47:38 +0300 |
commit | 2c47f0924fc5534035905746046ab0f5e9c99f23 (patch) | |
tree | ae84f0949b3b5378e44ba0ba0bf661753e48de1a /app/views | |
parent | b1e1990ee263bcae73f0e55526a55cff66103220 (diff) |
Add id to modal.vue to support data-toggle="modal"
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/profiles/accounts/show.html.haml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/views/profiles/accounts/show.html.haml b/app/views/profiles/accounts/show.html.haml index f1313b79589..79e197ad08b 100644 --- a/app/views/profiles/accounts/show.html.haml +++ b/app/views/profiles/accounts/show.html.haml @@ -84,11 +84,13 @@ = s_('Profiles|Deleting an account has the following effects:') = render 'users/deletion_guidance', user: current_user + %button#delete-account-button.btn.btn-danger.disabled{ data: { toggle: 'modal', + target: '#delete-account-modal' } } + = s_('Profiles|Delete account') + #delete-account-modal{ data: { action_url: user_registration_path, confirm_with_password: ('true' if current_user.confirm_deletion_with_password?), username: current_user.username } } - %button.btn.btn-danger.disabled - = s_('Profiles|Delete account') - else - if @user.solo_owned_groups.present? %p |