Skip to content

Commit

Permalink
- Improved downloading EML by only showing button when EML is available
Browse files Browse the repository at this point in the history
  • Loading branch information
Stjin committed Jan 27, 2025
1 parent ca4bfe2 commit fffd4d2
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
Binary file not shown.
3 changes: 0 additions & 3 deletions addy/View/DocumentInteractionView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ struct DocumentPicker: UIViewControllerRepresentable {
documentPicker.allowsMultipleSelection = false
documentPicker.shouldShowFileExtensions = true

// Specify the document types that can be saved
//documentPicker.allowedContentTypes = [UTType.item]

return documentPicker
}

Expand Down
26 changes: 14 additions & 12 deletions addy/View/faileddeliveries/FailedDeliveryBottomSheet.swift
Original file line number Diff line number Diff line change
Expand Up @@ -72,18 +72,20 @@ struct FailedDeliveryBottomSheet: View {
}.textCase(nil)

Section {
AddyLoadingButton(action: {

isLoadingDownloadButton = true;

Task {
await self.downloadFailedDelivery()
}

}, isLoading: $isLoadingDownloadButton) {
Text(String(localized: "download_failed_delivery")).foregroundColor(Color.white)

}.frame(minHeight: 56).padding(.bottom)
if (self.failedDelivery.is_stored){
AddyLoadingButton(action: {

isLoadingDownloadButton = true;

Task {
await self.downloadFailedDelivery()
}

}, isLoading: $isLoadingDownloadButton) {
Text(String(localized: "download_failed_delivery")).foregroundColor(Color.white)

}.frame(minHeight: 56).padding(.bottom)
}

AddyLoadingButton(action: {

Expand Down
1 change: 1 addition & 0 deletions addy_shared/addy_shared/models/FailedDeliveries.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public struct FailedDeliveries:Identifiable, Codable {
let email_type: String
let status: String
public let code: String
public let is_stored: Bool
public let attempted_at: String
public let created_at: String
let updated_at: String
Expand Down

0 comments on commit fffd4d2

Please sign in to comment.