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:52 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a1984236bce3e1b8aa083e8c30538899365bbcbb
a1984236
1 parent
db9c25f6
fix ContextualViewController activation flow
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
SwiftWarplyFramework/SwiftWarplyFramework/ContextualViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/ContextualViewController.swift
View file @
a198423
...
...
@@ -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,8 +310,12 @@ import SwiftEventBus
// MARK: - Actions
@IBAction
func
redeemButtomAction
(
_
sender
:
Any
)
{
if
(
self
.
numbersList
!=
nil
&&
self
.
numbersList
.
count
==
1
)
{
self
.
showConfirmDialog
(
self
.
numbersList
[
0
])
}
else
{
self
.
numbersPopupTapped
(
sender
)
}
}
@IBAction
func
termsButtonAction
(
_
sender
:
Any
)
{
termsVisible
=
!
termsVisible
...
...
@@ -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