You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: WooCommerce/Classes/ViewRelated/Orders/Order Details/Shipping Labels/WooShipping Create Shipping Labels/WooShipping Post-Purchase/WooShippingPostPurchaseView.swift
Copy file name to clipboardExpand all lines: WooCommerce/Classes/ViewRelated/Orders/Order Details/Shipping Labels/WooShipping Create Shipping Labels/WooShipping Post-Purchase/WooShippingPostPurchaseViewModel.swift
+3-7Lines changed: 3 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -56,13 +56,9 @@ final class WooShippingPostPurchaseViewModel: ObservableObject {
56
56
57
57
/// Fetches the shipping label in the selected paper size and presents the print dialog.
58
58
@MainActor
59
-
func printLabel()async{
60
-
do{
61
-
letprintData=tryawaitrequestPrintData()
62
-
presentPrintDialog(with: printData)
63
-
}catch{
64
-
DDLogError("Error generating shipping label document for printing: \(error)")
Copy file name to clipboardExpand all lines: WooCommerce/WooCommerceTests/ViewRelated/Shipping Label/WooShipping Create Shipping Labels/WooShippingPostPurchaseViewModelTests.swift
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -69,7 +69,7 @@ final class WooShippingPostPurchaseViewModelTests: XCTestCase {
0 commit comments