Showing
1 changed file
with
4 additions
and
0 deletions
| ... | @@ -272,6 +272,9 @@ import SwiftEventBus | ... | @@ -272,6 +272,9 @@ import SwiftEventBus |
| 272 | // MARK: NumbersPopup | 272 | // MARK: NumbersPopup |
| 273 | extension ShareViewController: NumbersPopupDelegate { | 273 | extension ShareViewController: NumbersPopupDelegate { |
| 274 | @objc func numbersPopupTapped(_ sender: Any) { | 274 | @objc func numbersPopupTapped(_ sender: Any) { |
| 275 | + if (self.numbersList.count == 0) { | ||
| 276 | + self.showDialog("Κάνε δώρο","Για την αποστολή του δώρου σου χρειάζεται να έχεις κινητό COSMOTE.") | ||
| 277 | + } else { | ||
| 275 | let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self)) | 278 | let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self)) |
| 276 | // self.storyboard? | 279 | // self.storyboard? |
| 277 | let pp = storyboard.instantiateViewController(withIdentifier: "NumberPopupViewController") as! SwiftWarplyFramework.NumberPopupViewController | 280 | let pp = storyboard.instantiateViewController(withIdentifier: "NumberPopupViewController") as! SwiftWarplyFramework.NumberPopupViewController |
| ... | @@ -281,6 +284,7 @@ extension ShareViewController: NumbersPopupDelegate { | ... | @@ -281,6 +284,7 @@ extension ShareViewController: NumbersPopupDelegate { |
| 281 | delegate: self, | 284 | delegate: self, |
| 282 | headerText: "Αποστολέας") | 285 | headerText: "Αποστολέας") |
| 283 | } | 286 | } |
| 287 | + } | ||
| 284 | 288 | ||
| 285 | func presentedPopup() { | 289 | func presentedPopup() { |
| 286 | // Code for when popup is presented | 290 | // Code for when popup is presented | ... | ... |
-
Please register or login to post a comment