summaryrefslogtreecommitdiff
path: root/app/views/profiles/accounts/show.html.haml
diff options
context:
space:
mode:
authorWinnie Hellmann <winnie@gitlab.com>2018-01-03 10:21:17 +0100
committerWinnie Hellmann <winnie@gitlab.com>2018-01-05 12:47:38 +0100
commit2c47f0924fc5534035905746046ab0f5e9c99f23 (patch)
treeae84f0949b3b5378e44ba0ba0bf661753e48de1a /app/views/profiles/accounts/show.html.haml
parentb1e1990ee263bcae73f0e55526a55cff66103220 (diff)
downloadgitlab-ce-2c47f0924fc5534035905746046ab0f5e9c99f23.tar.gz
Add id to modal.vue to support data-toggle="modal"
Diffstat (limited to 'app/views/profiles/accounts/show.html.haml')
-rw-r--r--app/views/profiles/accounts/show.html.haml6
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