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")