From d5aa3095ba42979f8bdf9d06f838b6fd8ff756f2 Mon Sep 17 00:00:00 2001 From: Janosch Maier Date: Fri, 26 Mar 2021 16:25:06 +0100 Subject: [PATCH] Add send and archive as configuration option to the preferences view (#2295) --- app/lang/de.json | 2 ++ app/lang/en.json | 2 ++ app/src/config-schema.ts | 7 +++++++ 3 files changed, 11 insertions(+) diff --git a/app/lang/de.json b/app/lang/de.json index 2c74bd57a..efecfe68f 100644 --- a/app/lang/de.json +++ b/app/lang/de.json @@ -166,6 +166,7 @@ "Default for new messages:": "Standard für neue Nachrichten:", "Default for:": "Standard für:", "Default reply behavior": "Standardantwortverhalten", + "Default send behavior": "Standardsendeverhalten", "Delete": "Löschen", "Delete Draft": "Entwurf löschen", "Delete Template?": "Vorlage löschen?", @@ -602,6 +603,7 @@ "Selected Messages": "Nachrichten auswählen", "Selection": "Auswahl", "Send": "Senden", + "Send and Archive": "Senden und Archivieren", "Send Anyway": "Trotzdem senden", "Send Later": "Später senden", "Send message": "E-Mail senden", diff --git a/app/lang/en.json b/app/lang/en.json index da1134ac5..fc1b092a1 100644 --- a/app/lang/en.json +++ b/app/lang/en.json @@ -169,6 +169,7 @@ "Default for new messages:": "Default for new messages:", "Default for:": "Default for:", "Default reply behavior": "Default reply behavior", + "Default send behavior": "Default send behavior", "Delete": "Delete", "Delete Draft": "Delete Draft", "Delete Template?": "Delete Template?", @@ -610,6 +611,7 @@ "Selected Messages": "Selected Messages", "Selection": "Selection", "Send": "Send", + "Send and Archive": "Send and Archive", "Send Anyway": "Send Anyway", "Send Later": "Send Later", "Send message": "Send message", diff --git a/app/src/config-schema.ts b/app/src/config-schema.ts index 68ae1b05f..3b32ca2b2 100644 --- a/app/src/config-schema.ts +++ b/app/src/config-schema.ts @@ -294,6 +294,13 @@ export default { default: true, title: localized('Message Sent Sound'), }, + defaultSendType: { + type: 'string', + default: 'send', + enum: ['send', 'send-and-archive'], + enumLabels: [localized('Send'), localized('Send and Archive')], + title: localized('Default send behavior'), + }, defaultReplyType: { type: 'string', default: 'reply-all',