diff options
author | Henrik Storch <henrik.storch@nextcloud.com> | 2022-05-09 15:19:17 +0300 |
---|---|---|
committer | Henrik Storch <henrik.storch@nextcloud.com> | 2022-05-09 15:19:24 +0300 |
commit | 3c8446102d3d9429ac8659fead64ec63f702be2c (patch) | |
tree | 2f6c684897333f43853d6d0ff7df2a6cf5539f66 | |
parent | 363c995cf39ade70ffd6bca216c8c8c696cb7ba4 (diff) |
Fix auto retry for grid viewfix/error-retry
Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com>
-rw-r--r-- | iOSClient/Main/Collection Common/NCCollectionViewCommon.swift | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/iOSClient/Main/Collection Common/NCCollectionViewCommon.swift b/iOSClient/Main/Collection Common/NCCollectionViewCommon.swift index feea8d00e..55d1f9fbc 100644 --- a/iOSClient/Main/Collection Common/NCCollectionViewCommon.swift +++ b/iOSClient/Main/Collection Common/NCCollectionViewCommon.swift @@ -1644,6 +1644,9 @@ extension NCCollectionViewCommon: UICollectionViewDataSource { // Transfer if metadata.status == NCGlobal.shared.metadataStatusInDownload || metadata.status == NCGlobal.shared.metadataStatusDownloading || metadata.status == NCGlobal.shared.metadataStatusInUpload || metadata.status == NCGlobal.shared.metadataStatusUploading { cell.setButtonMore(named: NCGlobal.shared.buttonMoreStop, image: NCBrandColor.cacheImages.buttonStop) + } else if metadata.status == NCGlobal.shared.metadataStatusError { + cell.setButtonMore(named: NCGlobal.shared.buttonMoreRetry, image: NCBrandColor.cacheImages.buttonRestore) + cell.imageLocal.image = NCUtility.shared.loadImage(named: "closeCircle", color: .red) } else { cell.setButtonMore(named: NCGlobal.shared.buttonMoreMore, image: NCBrandColor.cacheImages.buttonMore) } |