marinofaggiana 4 years ago
parent
commit
38a8a65e6d
1 changed files with 4 additions and 2 deletions
  1. 4 2
      iOSClient/Transfers/NCTransfers.swift

+ 4 - 2
iOSClient/Transfers/NCTransfers.swift

@@ -230,7 +230,7 @@ class NCTransfers: NCCollectionViewCommon, NCTransferCellDelegate  {
         }
                 
         let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "transferCell", for: indexPath) as! NCTransferCell
-            cell.delegate = self
+        cell.delegate = self
             
         cell.objectId = metadata.ocId
         cell.indexPath = indexPath
@@ -242,7 +242,9 @@ class NCTransfers: NCCollectionViewCommon, NCTransferCellDelegate  {
         cell.labelTitle.textColor = NCBrandColor.sharedInstance.textView
         
         let serverUrlHome = NCUtility.shared.getHomeServer(urlBase: metadata.urlBase, account: metadata.account)
-        cell.labelPath.text = metadata.serverUrl.replacingOccurrences(of: serverUrlHome, with: "")
+        var pathText = metadata.serverUrl.replacingOccurrences(of: serverUrlHome, with: "")
+        if pathText == "" { pathText = "/" }
+        cell.labelPath.text = pathText
         
         cell.setButtonMore(named: k_buttonMoreStop, image: NCCollectionCommon.images.cellButtonStop)