Marino Faggiana %!s(int64=6) %!d(string=hai) anos
pai
achega
e0d75e0ff3
Modificáronse 2 ficheiros con 20 adicións e 0 borrados
  1. 9 0
      iOSClient/Offline/NCOffline.storyboard
  2. 11 0
      iOSClient/Offline/NCOffline.swift

+ 9 - 0
iOSClient/Offline/NCOffline.storyboard

@@ -133,12 +133,21 @@
                     </view>
                     <connections>
                         <outlet property="collectionView" destination="Zaz-Cl-qpZ" id="8oA-Gx-z7T"/>
+                        <segue destination="rIl-hI-jAh" kind="showDetail" identifier="segueDetail" id="MHI-ti-PGq"/>
                     </connections>
                 </viewController>
                 <placeholder placeholderIdentifier="IBFirstResponder" id="JJ0-Le-6eT" userLabel="First Responder" sceneMemberID="firstResponder"/>
             </objects>
             <point key="canvasLocation" x="256.80000000000001" y="228.93553223388307"/>
         </scene>
+        <!--CCDetailNC-->
+        <scene sceneID="D5y-IR-BuC">
+            <objects>
+                <viewControllerPlaceholder storyboardName="Main" referencedIdentifier="CCDetailNC" id="rIl-hI-jAh" sceneMemberID="viewController"/>
+                <placeholder placeholderIdentifier="IBFirstResponder" id="eCA-Ct-z68" userLabel="First Responder" sceneMemberID="firstResponder"/>
+            </objects>
+            <point key="canvasLocation" x="1080" y="228"/>
+        </scene>
     </scenes>
     <resources>
         <image name="moreBig" width="120" height="120"/>

+ 11 - 0
iOSClient/Offline/NCOffline.swift

@@ -667,9 +667,20 @@ class NCOffline: UIViewController ,UICollectionViewDataSource, UICollectionViewD
             ncOffline.titleCurrentFolder = metadata.fileNameView
             
             self.navigationController?.pushViewController(ncOffline, animated: true)
+            
+        } else {
+            
+            performSegue(withIdentifier: "segueDetail", sender: self)
         }
     }
     
+    // MARK: SEGUE
+    
+    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
+        
+    }
+    
+
     // MARK: UTILITY
     
     private func cellBlurEffect(with frame: CGRect) -> UIView {