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-04-02 18:46:45 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c7c00cf3603db23e5c4887b6de3d1fb9d9befcff
c7c00cf3
1 parent
c5259ca3
fix sharing success modal
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
SwiftWarplyFramework/SwiftWarplyFramework/ShareViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/ShareViewController.swift
View file @
c7c00cf
...
...
@@ -237,11 +237,11 @@ import SwiftEventBus
alert
.
addAction
(
UIAlertAction
(
title
:
"OK"
,
style
:
.
default
,
handler
:
{
action
in
switch
action
.
style
{
case
.
default
:
if
(
self
.
isFromWallet
==
true
)
{
//
if (self.isFromWallet == true) {
self
.
popBack
(
3
)
}
else
{
print
(
"default"
)
}
//
} else {
//
print("default")
//
}
case
.
cancel
:
print
(
"cancel"
)
...
...
@@ -283,6 +283,7 @@ import SwiftEventBus
if
(
response
!=
nil
)
{
DispatchQueue
.
main
.
async
{
if
(
response
?
.
getStatus
==
1
)
{
self
.
showSuccessDialog
(
"Συγχαρητήρια!"
,
"Μόλις έκανες δώρο ένα κουπόνι!"
)
swiftApi
()
.
getCouponsAsync
(
getCouponsCallback
,
failureCallback
:
{
errorCode
in
})
...
...
@@ -291,7 +292,6 @@ import SwiftEventBus
DispatchQueue
.
main
.
async
{
SwiftEventBus
.
post
(
"coupons_fetched"
)
self
.
showSuccessDialog
(
"Συγχαρητήρια!"
,
"Μόλις έκανες δώρο ένα κουπόνι!"
)
}
}
else
{
}
...
...
Please
register
or
login
to post a comment