mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 14:45:21 +00:00
Business features
This commit is contained in:
@@ -8,7 +8,7 @@ import TelegramPresentationData
|
||||
import AccountContext
|
||||
|
||||
enum BotCheckoutWebInteractionControllerIntent {
|
||||
case addPaymentMethod((BotCheckoutPaymentWebToken) -> Void)
|
||||
case addPaymentMethod(customTitle: String?, completion: (BotCheckoutPaymentWebToken) -> Void)
|
||||
case externalVerification((Bool) -> Void)
|
||||
}
|
||||
|
||||
@@ -39,10 +39,10 @@ final class BotCheckoutWebInteractionController: ViewController {
|
||||
self.navigationItem.leftBarButtonItem = UIBarButtonItem(title: self.presentationData.strings.Common_Cancel, style: .plain, target: self, action: #selector(self.cancelPressed))
|
||||
|
||||
switch intent {
|
||||
case .addPaymentMethod:
|
||||
self.title = self.presentationData.strings.Checkout_NewCard_Title
|
||||
case .externalVerification:
|
||||
self.title = self.presentationData.strings.Checkout_WebConfirmation_Title
|
||||
case let .addPaymentMethod(customTitle, _):
|
||||
self.title = customTitle ?? self.presentationData.strings.Checkout_NewCard_Title
|
||||
case .externalVerification:
|
||||
self.title = self.presentationData.strings.Checkout_WebConfirmation_Title
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user