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 %} + + +