Manos Chorianopoulos

fix share popup

......@@ -118,10 +118,10 @@ import SwiftEventBus
func showSendDialog() -> Void {
let alert = UIAlertController(title: "Στείλε δώρο", message: "Είσαι σίγουρος ότι θέλεις να κάνεις δώρο το κουπόνι σου;", preferredStyle: .alert)
alert.addAction(UIAlertAction(title: "Αποστολή", style: .default, handler: { action in
let cancelButton = UIAlertAction(title: "Άκυρο", style: .default, handler: { action in
switch action.style{
case .default:
self.cosmoteCouponSharingRequest()
print("default")
case .cancel:
print("cancel")
......@@ -130,11 +130,14 @@ import SwiftEventBus
print("destructive")
}
}))
alert.addAction(UIAlertAction(title: "Άκυρο", style: .default, handler: { action in
})
cancelButton.setValue(UIColor(rgb: 0xFC5757), forKey: "titleTextColor")
alert.addAction(cancelButton)
alert.addAction(UIAlertAction(title: "Αποστολή", style: .default, handler: { action in
switch action.style{
case .default:
print("default")
self.cosmoteCouponSharingRequest()
case .cancel:
print("cancel")
......