marinofaggiana 4 년 전
부모
커밋
24428016ca
1개의 변경된 파일6개의 추가작업 그리고 2개의 파일을 삭제
  1. 6 2
      iOSClient/Account Request/NCAccountRequest.swift

+ 6 - 2
iOSClient/Account Request/NCAccountRequest.swift

@@ -212,8 +212,12 @@ extension NCAccountRequest: UITableViewDataSource {
                 avatarImage?.image = userImage
             }
                     
-            userLabel?.text = account.user.uppercased()
-            urlLabel?.text = (URL(string: account.urlBase)?.host ?? "")
+            if account.alias != "" {
+                userLabel?.text = account.alias.uppercased()
+            } else {
+                userLabel?.text = account.user.uppercased()
+                urlLabel?.text = (URL(string: account.urlBase)?.host ?? "")
+            }
 
             if account.active {
                 activeImage?.image = NCUtility.shared.loadImage(named: "checkmark")