Skip to content

Commit f9da38a

Browse files
committed
Add Done button to coupon allowed emails screen
1 parent eb36ab4 commit f9da38a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

WooCommerce/Classes/ViewRelated/Coupons/Add and Edit Coupons/UsageDetails/CouponAllowedEmails.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@ struct CouponAllowedEmails: View {
2525
}
2626
.navigationTitle(Localization.title)
2727
.navigationBarTitleDisplayMode(.inline)
28+
.toolbar {
29+
ToolbarItem(placement: .navigationBarTrailing) {
30+
Button(action: {
31+
// TODO: validate
32+
}, label: Localization.done)
33+
}
34+
}
2835
}
2936
}
3037

@@ -41,6 +48,7 @@ private extension CouponAllowedEmails {
4148
"Separate email addresses with commas. You can also use an asterisk (*) " +
4249
"to match parts of an email. For example \"*@gmail.com\" would match all gmail addresses.",
4350
comment: "Description of the allowed emails field for coupons")
51+
static let done = NSLocalizedString("Done", comment: "Done button on the Allowed Emails screen")
4452
}
4553
}
4654

0 commit comments

Comments
 (0)