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
2022-09-14 15:35:36 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d7a9eab0387ce6d76fb69dfbb0ea5da215ea3d48
d7a9eab0
1 parent
a67b766b
fix cancelButton on popups
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
18 deletions
SwiftWarplyFramework/SwiftWarplyFramework/ContextualViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/TelcoViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
SwiftWarplyFramework/SwiftWarplyFramework/ContextualViewController.swift
View file @
d7a9eab
...
...
@@ -64,10 +64,11 @@ import UIKit
func
showConfirmDialog
()
->
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
.
submitOrderRequest
(
)
print
(
"default"
)
case
.
cancel
:
print
(
"cancel"
)
...
...
@@ -76,11 +77,14 @@ import UIKit
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
.
submitOrderRequest
(
)
case
.
cancel
:
print
(
"cancel"
)
...
...
@@ -90,6 +94,7 @@ import UIKit
}
}))
self
.
present
(
alert
,
animated
:
true
,
completion
:
nil
)
}
...
...
SwiftWarplyFramework/SwiftWarplyFramework/TelcoViewController.swift
View file @
d7a9eab
...
...
@@ -120,10 +120,11 @@ import UIKit
func
showConfirmDialog
()
->
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
.
submitOrderRequest
(
)
print
(
"default"
)
case
.
cancel
:
print
(
"cancel"
)
...
...
@@ -132,11 +133,14 @@ import UIKit
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
.
submitOrderRequest
(
)
case
.
cancel
:
print
(
"cancel"
)
...
...
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
View file @
d7a9eab
...
...
@@ -3047,23 +3047,27 @@ public class swiftApi {
func
rejectSharingDialog
(
_
controller
:
UIViewController
,
_
sharingId
:
String
)
->
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
.
cosmoteRetrieveSharingAsync
(
sharingId
:
sharingId
,
accept
:
false
,
retrieveSharingCallback
)
print
(
"default"
)
case
.
cancel
:
print
(
"cancel"
)
case
.
destructive
:
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
.
cosmoteRetrieveSharingAsync
(
sharingId
:
sharingId
,
accept
:
false
,
retrieveSharingCallback
)
case
.
cancel
:
print
(
"cancel"
)
...
...
@@ -3073,6 +3077,7 @@ public class swiftApi {
}
}))
controller
.
present
(
alert
,
animated
:
true
,
completion
:
nil
)
...
...
Please
register
or
login
to post a comment