Member Page delete success modal

This commit is contained in:
Rebecca Hsieh 2024-10-29 12:07:45 -07:00
parent c05a4237cf
commit c0e740fe3d
No known key found for this signature in database

View file

@ -92,13 +92,11 @@ function addModal(member_email, member_id, num_domains, submit_delete_url, wrapp
let modalHeading = ''; let modalHeading = '';
let modalDescription = ''; let modalDescription = '';
console.log("member_id is", member_id) if (num_domains == 0){
if (num_domains === 0){
modalHeading = `Are you sure you want to delete ${member_email}?`; modalHeading = `Are you sure you want to delete ${member_email}?`;
modalDescription = `They will no longer be able to access this organization. \n modalDescription = `They will no longer be able to access this organization. \n
This action cannot be undone.`; This action cannot be undone.`;
} else if (num_domains === 1) { } else if (num_domains == 1) {
modalHeading = `Are you sure you want to delete ${member_email}?`; modalHeading = `Are you sure you want to delete ${member_email}?`;
modalDescription = `<b>${member_email}</b> currently manages ${num_domains} domain in the organization. \n modalDescription = `<b>${member_email}</b> currently manages ${num_domains} domain in the organization. \n
Removing them from the organization will remove all of their domains. They will no longer be able to \n Removing them from the organization will remove all of their domains. They will no longer be able to \n