marinofaggiana 4 years ago
parent
commit
24428016ca
1 changed files with 6 additions and 2 deletions
  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
                 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 {
             if account.active {
                 activeImage?.image = NCUtility.shared.loadImage(named: "checkmark")
                 activeImage?.image = NCUtility.shared.loadImage(named: "checkmark")