Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -228,10 +228,10 @@ struct DashSpendPayScreen: View {
positiveButtonAction: {
showCustomErrorDialog = false
},
negativeButtonText: NSLocalizedString("Contact CTX Support", comment: "DashSpend"),
negativeButtonText: viewModel.contactSupportButtonText,
negativeButtonAction: {
showCustomErrorDialog = false
viewModel.contactCTXSupport()
viewModel.contactSupport()
}
)
.frame(maxWidth: .infinity, maxHeight: .infinity)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,12 @@ class DashSpendPayViewModel: NSObject, ObservableObject, NetworkReachabilityHand

return transaction.txHashData
}

func contactCTXSupport() {

var contactSupportButtonText: String {
String(format: NSLocalizedString("Contact %@ Support", comment: "DashSpend"), provider.displayName)
}

func contactSupport() {
let subject = "\(provider.displayName) Issue: Spending Limit Problem"

var body = "Merchant details\n"
Expand Down
4 changes: 2 additions & 2 deletions DashWallet/Sources/UI/SwiftUI Components/ButtonsGroup.swift
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@ struct ButtonsGroup: View {
.overrideBackgroundColor(style == .regular ? .dashBlue : .buttonRed)
.overrideForegroundColor(negativeButtonText == nil ? .dashBlue : .white)
negativeButton
.overrideForegroundColor(positiveButtonText == nil ? .dashBlue : .primaryText)
.overrideForegroundColor(.dashBlue)
}
} else {
HStack(spacing: 6) {
negativeButton
.frame(maxWidth: .infinity)
.overrideForegroundColor(positiveButtonText == nil ? .dashBlue : .primaryText)
.overrideForegroundColor(.dashBlue)
positiveButton
.frame(maxWidth: .infinity)
.overrideBackgroundColor(style == .regular ? .dashBlue : .buttonRed)
Expand Down