Explorar el Código

Add a11y lock status

Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com>
Henrik Storch hace 3 años
padre
commit
69779c65c1
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      iOSClient/Main/Collection Common/NCCollectionViewCommon.swift

+ 2 - 0
iOSClient/Main/Collection Common/NCCollectionViewCommon.swift

@@ -1469,6 +1469,7 @@ extension NCCollectionViewCommon: UICollectionViewDataSource {
                 cell.setButtonMore(named: NCGlobal.shared.buttonMoreStop, image: NCBrandColor.cacheImages.buttonStop)
             } else if metadata.lock == true {
                 cell.setButtonMore(named: NCGlobal.shared.buttonMoreLock, image: NCBrandColor.cacheImages.buttonMoreLock)
+                a11yValues.append(String(format: NSLocalizedString("_locked_by_", comment: ""), metadata.lockOwnerDisplayName))
             } else {
                 cell.setButtonMore(named: NCGlobal.shared.buttonMoreMore, image: NCBrandColor.cacheImages.buttonMore)
             }
@@ -1640,6 +1641,7 @@ extension NCCollectionViewCommon: UICollectionViewDataSource {
                 cell.setButtonMore(named: NCGlobal.shared.buttonMoreStop, image: NCBrandColor.cacheImages.buttonStop)
             } else if metadata.lock == true {
                 cell.setButtonMore(named: NCGlobal.shared.buttonMoreLock, image: NCBrandColor.cacheImages.buttonMoreLock)
+                a11yValues.append(String(format: NSLocalizedString("_locked_by_", comment: ""), metadata.lockOwnerDisplayName))
             } else {
                 cell.setButtonMore(named: NCGlobal.shared.buttonMoreMore, image: NCBrandColor.cacheImages.buttonMore)
             }