From 0f4e71d478b8f601adae0d82e2993341e2d5ad76 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Fri, 8 Oct 2021 10:20:17 -0700 Subject: [PATCH] mailbox: add checkbox for pop3 --- src/js/client.js | 8 +------- src/translation/en.json | 3 ++- src/views/email.html | 6 ++++++ src/views/email.js | 11 ++++++++++- 4 files changed, 19 insertions(+), 9 deletions(-) diff --git a/src/js/client.js b/src/js/client.js index b00f5aa2a..08990f31d 100644 --- a/src/js/client.js +++ b/src/js/client.js @@ -2570,13 +2570,7 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout }); }; - Client.prototype.updateMailbox = function (domain, name, ownerId, ownerType, active, callback) { - var data = { - ownerId: ownerId, - ownerType: ownerType, - active: active - }; - + Client.prototype.updateMailbox = function (domain, name, data, callback) { post('/api/v1/mail/' + domain + '/mailboxes/' + name, data, null, function (error, data, status) { if (error) return callback(error); if (status !== 204) return callback(new ClientError(status, data)); diff --git a/src/translation/en.json b/src/translation/en.json index ea4a5b838..68a3b161e 100644 --- a/src/translation/en.json +++ b/src/translation/en.json @@ -1180,7 +1180,8 @@ "activeCheckbox": "Mailing list is active" }, "updateMailboxDialog": { - "activeCheckbox": "Mailbox is active" + "activeCheckbox": "Mailbox is active", + "enablePop3": "Enable POP3 access" } }, "app": { diff --git a/src/views/email.html b/src/views/email.html index bf3ab5a75..6beed05e7 100644 --- a/src/views/email.html +++ b/src/views/email.html @@ -152,6 +152,12 @@ +
+ +
+