Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 9 additions & 10 deletions FlowCrypt/Controllers/Compose/ComposeViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -190,18 +190,17 @@ final class ComposeViewController: TableNodeViewController {
private func updateSpinner(with state: ComposeMessageService.State) {
switch state {
case .progressChanged(let progress):
showProgressHUD(
progress: progress,
label: state.message ?? "\(progress)"
)
case .messageSent:
showProgressHUDWithCustomImage(
imageName: "checkmark.circle",
label: "compose_sent".localized
)
if progress < 1 {
showProgressHUD(
progress: progress,
label: state.message ?? "\(progress)"
)
} else {
showIndeterminateHUD(with: "sending_title".localized)
}
case .startComposing, .validatingMessage:
showIndeterminateHUD(with: state.message ?? "")
case .idle:
case .idle, .messageSent:
hideSpinner()
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,13 +208,13 @@ extension ComposeMessageService {
case .idle:
return nil
case .validatingMessage:
return "Validating"
return "validating_title".localized
case .startComposing:
return "Encrypting"
return "encrypting_title".localized
case .progressChanged:
return "Uploading"
return "compose_uploading".localized
case .messageSent:
return "Message sent"
return "compose_message_sent".localized
}
}

Expand Down
2 changes: 2 additions & 0 deletions FlowCrypt/Resources/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"encrypting_title" = "Encrypting...";
"processing_title" = "Processing...";
"sending_title" = "Sending";
"validating_title" = "Validating";
"unknown_title" = "(unknown)";
"retry_title" = "Retry";
"ok" = "Ok";
Expand Down Expand Up @@ -82,6 +83,7 @@
"compose_quote_from" = "On %@ at %@ %@ wrote:"; // Date, time, sender
"compose_forward_successful" = "Message forwarded successfully";
"compose_encrypted_sent" = "Encrypted message sent";
"compose_message_sent" = "Message sent";
"compose_enter_subject" = "Enter subject";
"compose_enter_secure" = "Enter secure message";
"compose_recipient" = "Add Recipient";
Expand Down