diff --git a/src/translation/en.json b/src/translation/en.json index cb2e8bef9..8492ac3af 100644 --- a/src/translation/en.json +++ b/src/translation/en.json @@ -1198,11 +1198,14 @@ "email": { "from": { "title": "Mail FROM Address", - "description": "This sets the address from which this app sends email. This app is already configured to send mail using {{ domain }}'s Outbound Email settings.", + "description": "This sets the address from which this app sends email. This app is already configured to send mail using {{ domain }}'s Outbound Email settings.", "mailboxPlaceholder": "Leave empty to use platform default", "saveAction": "Save", - "enable": "Send emails using the internal mail server", - "description2": "When enabled, the app is configured to send emails via the internal mail server using this address. The internal mail server will use the {{ domain }}'s Outbound Email settings to send mail. When disabled, you can configure the email settings within the app." + "enable": "Use Cloudron Mail to send emails", + "description2": "When enabled, the app is configured to send emails via the internal mail server using this address. The internal mail server will use the {{ domain }}'s Outbound Email settings to send mail. When disabled, you can configure the email settings within the app.", + "disable": "Do not configure mail settings", + "enableDescription": "The app is configured to send mails using the address below and the {{ domain }}'s Outbound Email settings.", + "disableDescription": "The app's mail delivery settings is left alone. You can configure it inside the app." }, "csp": { "title": "Content Security Policy" diff --git a/src/translation/nl.json b/src/translation/nl.json index 00ade2853..247f96769 100644 --- a/src/translation/nl.json +++ b/src/translation/nl.json @@ -317,7 +317,9 @@ "noTokensPlaceholder": "Er zijn geen API Tokens aangemaakt", "revokeTokenTooltip": "Token intrekken", "expiresAt": "Vervalt op", - "description": "Gebruik deze persoonlijke toegangstokens voor authenticatie met de Cloudron API" + "description": "Gebruik deze persoonlijke toegangstokens voor authenticatie met de Cloudron API", + "neverUsed": "nooit", + "lastUsed": "Laatst gebruikt" }, "loginTokens": { "title": "Inlog Tokens", @@ -643,7 +645,9 @@ "title": "E-mail VAN adres", "mailboxPlaceholder": "Laat leeg om platformstandaard te gebruiken", "saveAction": "Opslaan", - "description": "Dit stelt het adres in waarvandaan deze app e-mail verzendt. Deze app is al geconfigureerd om e-mail te verzenden met deze {{ domain }}'s uitgaande e-mail instellingen." + "description": "Dit stelt het adres in waarvandaan deze app e-mail verzendt. Deze app is al geconfigureerd om e-mail te verzenden met deze {{ domain }}'s uitgaande e-mail instellingen.", + "description2": "Indien ingeschakeld, verstuurt de app e-mails via de interne mailserver met dit adres. De interne mailserver gebruikt de {{ domain }}'s Uitgaande e-mail instellingen om e-mail te versturen. Indien uitgeschakeld, kun je de e-mailinstellingen bewerken in de app.", + "enable": "Verstuur e-mails via de interne mailserver" } }, "backAction": "Terug naar Mijn Apps", diff --git a/src/views/app.html b/src/views/app.html index 6d26c2a7d..845eb6d49 100644 --- a/src/views/app.html +++ b/src/views/app.html @@ -858,21 +858,15 @@
-
- -
+ -

Some description what this does

- -
+
-

+

@@ -899,11 +893,19 @@
+ +
+ +
+ +

{{ 'app.email.from.disableDescription' | tr }}

-
diff --git a/src/views/app.js b/src/views/app.js index 5241c27c3..351e6dca9 100644 --- a/src/views/app.js +++ b/src/views/app.js @@ -771,7 +771,7 @@ angular.module('Application').controller('AppController', ['$scope', '$location' $scope.email.error = {}; $scope.email.busy = true; - Client.configureApp($scope.app.id, 'mailbox', { enable: $scope.email.enableMailbox, mailboxName: $scope.email.mailboxName || null, mailboxDomain: $scope.email.mailboxDomain.domain }, function (error) { + Client.configureApp($scope.app.id, 'mailbox', { enable: $scope.email.enableMailbox === '1', mailboxName: $scope.email.mailboxName || null, mailboxDomain: $scope.email.mailboxDomain.domain }, function (error) { if (error && error.statusCode === 400) { $scope.email.busy = false; $scope.email.error.mailboxName = error.message;