diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-02-18 22:27:22 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2020-03-03 15:54:57 +0100 |
commit | f2cd93584f51ab7aeb762657cfac4602310d7c74 (patch) | |
tree | 5fd23b65933790b50bbcb2ccc2a89a09eecf2e54 /apps/settings/src | |
parent | c4a8887dca67e3843b530a4e9046b3b20767c365 (diff) | |
download | nextcloud-server-f2cd93584f51ab7aeb762657cfac4602310d7c74.tar.gz nextcloud-server-f2cd93584f51ab7aeb762657cfac4602310d7c74.zip |
Show user/displayname when backend does not offer saving
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/settings/src')
-rw-r--r-- | apps/settings/src/components/UserList/UserRow.vue | 43 |
1 files changed, 23 insertions, 20 deletions
diff --git a/apps/settings/src/components/UserList/UserRow.vue b/apps/settings/src/components/UserList/UserRow.vue index e7c039376f5..201ab8b7728 100644 --- a/apps/settings/src/components/UserList/UserRow.vue +++ b/apps/settings/src/components/UserList/UserRow.vue @@ -76,32 +76,35 @@ width="32"> </div> <!-- dirty hack to ellipsis on two lines --> - <div class="displayName"> + <div v-if="user.backendCapabilities.setDisplayName" class="displayName"> <form :class="{'icon-loading-small': loading.displayName}" class="displayName" @submit.prevent="updateDisplayName"> - <template v-if="user.backendCapabilities.setDisplayName"> - <input v-if="user.backendCapabilities.setDisplayName" - :id="'displayName'+user.id+rand" - ref="displayName" - :disabled="loading.displayName||loading.all" - :value="user.displayname" - autocapitalize="off" - autocomplete="new-password" - autocorrect="off" - spellcheck="false" - type="text"> - <input v-if="user.backendCapabilities.setDisplayName" - class="icon-confirm" - type="submit" - value=""> - </template> - <div v-else - v-tooltip.auto="t('settings', 'The backend does not support changing the display name')" - class="name" /> + <input + :id="'displayName'+user.id+rand" + ref="displayName" + :disabled="loading.displayName||loading.all" + :value="user.displayname" + autocapitalize="off" + autocomplete="off" + autocorrect="off" + spellcheck="false" + type="text"> + <input + class="icon-confirm" + type="submit" + value=""> </form> </div> + <div v-else class="name"> + {{ user.id }} + <div class="displayName subtitle"> + <div v-tooltip="user.displayname.length > 20 ? user.displayname : ''" class="cellText"> + {{ user.displayname }} + </div> + </div> + </div> <form v-if="settings.canChangePassword && user.backendCapabilities.setPassword" :class="{'icon-loading-small': loading.password}" class="password" |