marinofaggiana 4 years ago
parent
commit
3aff0759a8

+ 6 - 0
iOSClient/Settings/NCCapabilitiesViewController.swift

@@ -39,6 +39,12 @@ class NCCapabilitiesViewController: UIViewController {
         
         if let jsonText = NCManageDatabase.sharedInstance.getCapabilities(account: account.account) {
             textView.text = jsonText
+        } else {
+            NCContentPresenter.shared.messageNotification("_error_", description: "_no_capabilities_found_", delay: TimeInterval(k_dismissAfterSecond), type: NCContentPresenter.messageType.info, errorCode: Int(k_CCErrorInternalError), forced: true)
+            
+            DispatchQueue.main.asyncAfter(deadline: .now() + 0.3) {
+                self.dismiss(animated: true, completion: nil)
+            }
         }
     }
     

+ 1 - 0
iOSClient/Supporting Files/en.lproj/Localizable.strings

@@ -292,6 +292,7 @@
 "_upload_mov_livephoto_footer_" = "\"Live Photo\" will save, when possible, the photo selected in \"Live Photo\" format";
 "_view_capabilities_"           = "View the capabilities";
 "_capabilities_"                = "Capabilities";
+"_no_capabilities_found_"       = "Capabilities not found";
 
 // Login