diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2018-11-07 16:35:51 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2018-11-07 22:37:41 +0100 |
commit | 505722cc0d949ff5606b71757ec8d2ad2691b62b (patch) | |
tree | d636c7370b519ad0c8a02bd7c34fc477a67b6145 /settings/src | |
parent | 836ba4f4192d042921507f9eea4ff69b4d54480e (diff) | |
download | nextcloud-server-505722cc0d949ff5606b71757ec8d2ad2691b62b.tar.gz nextcloud-server-505722cc0d949ff5606b71757ec8d2ad2691b62b.zip |
do not offer to change display name or password, if not possible.
Fixes #12319
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'settings/src')
-rw-r--r-- | settings/src/components/userList/userRow.vue | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/settings/src/components/userList/userRow.vue b/settings/src/components/userList/userRow.vue index 138f855eaf0..382ed310606 100644 --- a/settings/src/components/userList/userRow.vue +++ b/settings/src/components/userList/userRow.vue @@ -42,13 +42,17 @@ <!-- dirty hack to ellipsis on two lines --> <div class="name">{{user.id}}</div> <form class="displayName" :class="{'icon-loading-small': loading.displayName}" v-on:submit.prevent="updateDisplayName"> - <input :id="'displayName'+user.id+rand" type="text" - :disabled="loading.displayName||loading.all" - :value="user.displayname" ref="displayName" - autocomplete="new-password" autocorrect="off" autocapitalize="off" spellcheck="false" /> - <input type="submit" class="icon-confirm" value="" /> + <template v-if="user.backendCapabilities.setDisplayName"> + <input v-if="user.backendCapabilities.setDisplayName" + :id="'displayName'+user.id+rand" type="text" + :disabled="loading.displayName||loading.all" + :value="user.displayname" ref="displayName" + autocomplete="new-password" autocorrect="off" autocapitalize="off" spellcheck="false" /> + <input v-if="user.backendCapabilities.setDisplayName" type="submit" class="icon-confirm" value="" /> + </template> + <div v-else class="name" v-tooltip.auto="t('settings', 'The backend does not support changing the display name')">{{user.displayname}}</div> </form> - <form class="password" v-if="settings.canChangePassword" :class="{'icon-loading-small': loading.password}" + <form class="password" v-if="settings.canChangePassword && user.backendCapabilities.setPassword" :class="{'icon-loading-small': loading.password}" v-on:submit.prevent="updatePassword"> <input :id="'password'+user.id+rand" type="password" required :disabled="loading.password||loading.all" :minlength="minPasswordLength" |