From 5080772fcf667470c052d2e971f34a160f4b7684 Mon Sep 17 00:00:00 2001 From: usmannasir Date: Sat, 28 Jun 2025 15:13:00 +0500 Subject: [PATCH] bug fix: https://github.com/usmannasir/cyberpanel/issues/1028#issuecomment-3014702088 --- mailServer/static/mailServer/mailServer.js | 4 ++ .../templates/mailServer/listEmails.html | 45 ++++++++++++++++++- 2 files changed, 47 insertions(+), 2 deletions(-) diff --git a/mailServer/static/mailServer/mailServer.js b/mailServer/static/mailServer/mailServer.js index ac500d84d..cc9b2b939 100644 --- a/mailServer/static/mailServer/mailServer.js +++ b/mailServer/static/mailServer/mailServer.js @@ -1186,6 +1186,10 @@ app.controller('listEmails', function ($scope, $http) { }; + $scope.confirmDeleteEmail = function (email) { + $scope.emailToDelete = email; + }; + $scope.deleteEmailAccountFinal = function (email) { $scope.cyberpanelLoading = true; // Show loading while deleting diff --git a/mailServer/templates/mailServer/listEmails.html b/mailServer/templates/mailServer/listEmails.html index 05a2ee266..a9d083691 100644 --- a/mailServer/templates/mailServer/listEmails.html +++ b/mailServer/templates/mailServer/listEmails.html @@ -642,10 +642,12 @@ {% trans 'Change Password' %} - + title="" + data-toggle="modal" + data-target="#deleteConfirmModal"> {% trans 'Delete' %} @@ -708,6 +710,45 @@ {% endif %} + + + {% endblock %} \ No newline at end of file