Toggle navigation
Toggle navigation
This project
Loading...
Sign in
open-source
/
warply_sdk_framework
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
Manos Chorianopoulos
2024-10-15 15:56:05 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5e0229c3e2e34e66f4a466ee6971b53d6c808325
5e0229c3
1 parent
514d24b2
fix ContextualViewController activation flow
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
SwiftWarplyFramework/SwiftWarplyFramework/ContextualViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/ContextualViewController.swift
View file @
5e0229c
...
...
@@ -137,9 +137,9 @@ import SwiftEventBus
}
}
func
showConfirmDialog
()
->
Void
{
func
showConfirmDialog
(
_
numberArg
:
String
)
->
Void
{
let
alert
=
UIAlertController
(
title
:
"Ενεργοποίηση υπηρεσίας"
,
message
:
"Θέλετε να γίνει ενεργοποίηση στο
Κινητό μου
;"
,
preferredStyle
:
.
alert
)
let
alert
=
UIAlertController
(
title
:
"Ενεργοποίηση υπηρεσίας"
,
message
:
"Θέλετε να γίνει ενεργοποίηση στο
"
+
numberArg
+
"
;"
,
preferredStyle
:
.
alert
)
let
cancelButton
=
UIAlertAction
(
title
:
"Άκυρο"
,
style
:
.
default
,
handler
:
{
action
in
switch
action
.
style
{
...
...
@@ -310,7 +310,11 @@ import SwiftEventBus
// MARK: - Actions
@IBAction
func
redeemButtomAction
(
_
sender
:
Any
)
{
self
.
numbersPopupTapped
(
sender
)
if
(
self
.
numbersList
!=
nil
&&
self
.
numbersList
.
count
==
1
)
{
self
.
showConfirmDialog
(
self
.
numbersList
[
0
])
}
else
{
self
.
numbersPopupTapped
(
sender
)
}
}
@IBAction
func
termsButtonAction
(
_
sender
:
Any
)
{
...
...
@@ -344,7 +348,7 @@ extension ContextualViewController: NumbersPopupDelegate {
// Code for when option is selected
self
.
selectedNumber
=
option
DispatchQueue
.
main
.
async
{
self
.
showConfirmDialog
()
self
.
showConfirmDialog
(
option
)
}
}
}
...
...
Please
register
or
login
to post a comment