mirror of
https://github.com/kiwix/kiwix-apple.git
synced 2025-09-27 05:49:25 -04:00
NetworkRequiredAlert
This commit is contained in:
parent
66905eccd7
commit
265dcb9e66
@ -12,7 +12,6 @@ import Operations
|
|||||||
class SpaceNotEnoughAlert: AlertOperation<UIViewController> {
|
class SpaceNotEnoughAlert: AlertOperation<UIViewController> {
|
||||||
init(context: UIViewController) {
|
init(context: UIViewController) {
|
||||||
super.init(presentAlertFrom: context)
|
super.init(presentAlertFrom: context)
|
||||||
|
|
||||||
title = LocalizedStrings.Library.spaceNotEnough
|
title = LocalizedStrings.Library.spaceNotEnough
|
||||||
message = NSLocalizedString("Please free up some space and try again.", comment: "Library, Space Alert")
|
message = NSLocalizedString("Please free up some space and try again.", comment: "Library, Space Alert")
|
||||||
addActionWithTitle(LocalizedStrings.cancel)
|
addActionWithTitle(LocalizedStrings.cancel)
|
||||||
@ -44,7 +43,16 @@ class RemoveBookConfirmationAlert: AlertOperation<UIViewController> {
|
|||||||
let operation = RemoveBookOperation(bookID: bookID)
|
let operation = RemoveBookOperation(bookID: bookID)
|
||||||
GlobalQueue.shared.addOperation(operation)
|
GlobalQueue.shared.addOperation(operation)
|
||||||
}
|
}
|
||||||
addActionWithTitle(LocalizedStrings.cancel)
|
addActionWithTitle(LocalizedStrings.ok)
|
||||||
preferredAction = actions[0]
|
preferredAction = actions[0]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
class NetworkRequiredAlert: AlertOperation<UIViewController> {
|
||||||
|
init(context: UIViewController) {
|
||||||
|
super.init(presentAlertFrom: context)
|
||||||
|
title = NSLocalizedString("Network Required", comment: "Network Required Alert")
|
||||||
|
message = NSLocalizedString("Unable to connect to server. Please check your Internet connection.", comment: "Network Required Alert")
|
||||||
|
addActionWithTitle(LocalizedStrings.cancel)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -133,12 +133,8 @@ class CloudBooksController: UITableViewController, NSFetchedResultsControllerDel
|
|||||||
}
|
}
|
||||||
|
|
||||||
func showReachibilityAlert() {
|
func showReachibilityAlert() {
|
||||||
let cancel = UIAlertAction(title: LocalizedStrings.Common.ok, style: .Cancel, handler: nil)
|
let operation = NetworkRequiredAlert(context: self)
|
||||||
let alertController = UIAlertController(title: NSLocalizedString("Network Required", comment: "Network Required Alert"),
|
GlobalQueue.shared.addOperation(operation)
|
||||||
message: NSLocalizedString("Unable to connect to server. Please check your Internet connection.", comment: "Network Required Alert"),
|
|
||||||
preferredStyle: .Alert)
|
|
||||||
alertController.addAction(cancel)
|
|
||||||
self.presentViewController(alertController, animated: true, completion: nil)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func showLanguageFilterAlert() {
|
func showLanguageFilterAlert() {
|
||||||
|
@ -49,7 +49,7 @@
|
|||||||
</dict>
|
</dict>
|
||||||
</array>
|
</array>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>1.8.649</string>
|
<string>1.8.652</string>
|
||||||
<key>ITSAppUsesNonExemptEncryption</key>
|
<key>ITSAppUsesNonExemptEncryption</key>
|
||||||
<false/>
|
<false/>
|
||||||
<key>LSRequiresIPhoneOS</key>
|
<key>LSRequiresIPhoneOS</key>
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
<key>CFBundleSignature</key>
|
<key>CFBundleSignature</key>
|
||||||
<string>????</string>
|
<string>????</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>1.8.652</string>
|
<string>1.8.655</string>
|
||||||
<key>NSExtension</key>
|
<key>NSExtension</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>NSExtensionMainStoryboard</key>
|
<key>NSExtensionMainStoryboard</key>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user