marinofaggiana 5 anos atrás
pai
commit
317f46043f

+ 15 - 0
iOSClient/Images.xcassets/downloadImageFullRes.imageset/Contents.json

@@ -0,0 +1,15 @@
+{
+  "images" : [
+    {
+      "idiom" : "universal",
+      "filename" : "downloadImageFullRes.pdf"
+    }
+  ],
+  "info" : {
+    "version" : 1,
+    "author" : "xcode"
+  },
+  "properties" : {
+    "preserves-vector-representation" : true
+  }
+}

BIN
iOSClient/Images.xcassets/downloadImageFullRes.imageset/downloadImageFullRes.pdf


+ 11 - 0
iOSClient/Main/Menu/NCDetailNavigationController+Menu.swift

@@ -67,6 +67,17 @@ extension NCDetailNavigationController {
             )
         )
         
+        if appDelegate.activeDetail.viewerImageViewController != nil && !CCUtility.fileProviderStorageExists(appDelegate.activeDetail.metadata?.ocId, fileNameView: appDelegate.activeDetail.metadata?.fileNameView) && metadata.session == "" {
+            actions.append(
+                NCMenuAction(title: NSLocalizedString("_download_image_max_", comment: ""),
+                    icon: CCGraphics.changeThemingColorImage(UIImage(named: "downloadImageFullRes"), width: 50, height: 50, color: NCBrandColor.sharedInstance.icon),
+                    action: { menuAction in
+                        
+                    }
+                )
+            )
+        }
+        
         actions.append(
             NCMenuAction(title: NSLocalizedString("_close_", comment: ""),
                 icon: CCGraphics.changeThemingColorImage(UIImage(named: "exit"), width: 50, height: 50, color: NCBrandColor.sharedInstance.icon),

+ 1 - 1
iOSClient/Main/NCDetailViewController.swift

@@ -38,7 +38,7 @@ class NCDetailViewController: UIViewController {
     @objc var mediaFilterImage: Bool = false
     @objc var offlineFilterImage: Bool = false
     
-    private var viewerImageViewController: NCViewerImageViewController?
+    @objc  var viewerImageViewController: NCViewerImageViewController?
     private var metadatas = [tableMetadata]()
         
     //MARK: -