Various improvements

This commit is contained in:
Ilya Laktyushin
2023-11-07 14:29:17 +04:00
parent d7a4ac0205
commit 68b5a7f6d5
7 changed files with 309 additions and 49 deletions

View File

@@ -837,7 +837,10 @@ public func createGiveawayController(context: AccountContext, updatedPresentatio
badgeCount = Int32(state.peers.count) * 4
}
let footerItem = CreateGiveawayFooterItem(theme: presentationData.theme, title: state.mode == .gift ? presentationData.strings.BoostGift_GiftPremium : presentationData.strings.BoostGift_StartGiveaway, badgeCount: badgeCount, isLoading: state.updating, action: {
buyActionImpl?()
let alertController = textAlertController(context: context, title: presentationData.strings.BoostGift_StartConfirmation_Title, text: presentationData.strings.BoostGift_StartConfirmation_Text, actions: [TextAlertAction(type: .genericAction, title: presentationData.strings.Common_Cancel, action: {}), TextAlertAction(type: .defaultAction, title: presentationData.strings.BoostGift_StartConfirmation_Start, action: {
buyActionImpl?()
})], parseMarkdown: true)
presentControllerImpl?(alertController)
})
let leftNavigationButton = ItemListNavigationButton(content: .none, style: .regular, enabled: false, action: {})