Skip to content
Snippets Groups Projects
Commit f92d39fe authored by Oliver Wiese's avatar Oliver Wiese
Browse files

fix localization bug

parent bda1cc54
No related branches found
No related tags found
No related merge requests found
...@@ -155,6 +155,7 @@ class ReadViewCoordinator { ...@@ -155,6 +155,7 @@ class ReadViewCoordinator {
func askSenderToConfirm <M: DisplayMail>(mail: M) { func askSenderToConfirm <M: DisplayMail>(mail: M) {
let to = [mail.sender.findAddress(temp: false)] let to = [mail.sender.findAddress(temp: false)]
print(mail.sender.findAddress(temp: false).mailAddress)
let body = NSLocalizedString("didYouSendThis", comment: "Did you sent this mail?") + "\n"+preparePreviousMailBody(mail: mail) let body = NSLocalizedString("didYouSendThis", comment: "Did you sent this mail?") + "\n"+preparePreviousMailBody(mail: mail)
pushComposeView(to: to, cc: [], bcc: [], subject: mail.subject, body: body, responseType: .Reply) pushComposeView(to: to, cc: [], bcc: [], subject: mail.subject, body: body, responseType: .Reply)
} }
......
...@@ -95,8 +95,6 @@ struct SecurityBriefingView<M: DisplayMail>: View { ...@@ -95,8 +95,6 @@ struct SecurityBriefingView<M: DisplayMail>: View {
Text(self.mail.buttonActions[index].title) Text(self.mail.buttonActions[index].title)
.frame(maxWidth: .infinity, minHeight: 50, maxHeight: 50) .frame(maxWidth: .infinity, minHeight: 50, maxHeight: 50)
.addBorder(self.mail.buttonActions[index].color, width: 1, cornerRadius: 30) .addBorder(self.mail.buttonActions[index].color, width: 1, cornerRadius: 30)
// .foregroundColor(.white)
//.background(RoundedCorners(color: self.mail.buttonActions[index].color, radius: 30))
.padding(.vertical, 10) .padding(.vertical, 10)
.padding(.horizontal, 20) .padding(.horizontal, 20)
}) })
...@@ -239,7 +237,7 @@ struct DialogButtonLabel: View { ...@@ -239,7 +237,7 @@ struct DialogButtonLabel: View {
} }
var body: some View { var body: some View {
Text(data.titleKey) Text(data.title)
.frame(maxWidth: .infinity, minHeight: 20, maxHeight: 20) .frame(maxWidth: .infinity, minHeight: 20, maxHeight: 20)
.padding(10) .padding(10)
.addBorder(color, width: 1, cornerRadius: 30) .addBorder(color, width: 1, cornerRadius: 30)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment