diff options
author | Robin Appelman <robin@icewind.nl> | 2020-10-12 21:34:57 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-12 21:34:57 +0000 |
commit | da0c00695fe59ce57684e89e6b45593e62f6140a (patch) | |
tree | a5352efd2e585fb598f51b1d4607a6768690b5a8 | |
parent | b56732b343cf3934b012dfa7db1dd2188b7de198 (diff) | |
parent | 6158665a33e4edbcf83006e5c1fa2dd7453f09da (diff) |
Merge pull request #1069 from nextcloud/profile-prefered-username
use prefered username as fallback if no account name is provided
-rw-r--r-- | src/components/ProfileInfo.vue | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/components/ProfileInfo.vue b/src/components/ProfileInfo.vue index 56ce0aa2..a5911fa7 100644 --- a/src/components/ProfileInfo.vue +++ b/src/components/ProfileInfo.vue @@ -137,6 +137,9 @@ export default { if (typeof this.accountInfo.name !== 'undefined' && this.accountInfo.name !== '') { return this.accountInfo.name } + if (typeof this.accountInfo.preferredUsername !== 'undefined' && this.accountInfo.preferredUsername !== '') { + return this.accountInfo.preferredUsername + } return this.account }, accountInfo: function() { |