Merge pull request #41034 from nextcloud/fix/37092/users--html-validation

fix(settings): users page html validation
This commit is contained in:
Ferdinand Thiessen 2023-10-23 17:16:43 +02:00 committed by GitHub
commit d43c66e96a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 10 additions and 11 deletions

View file

@ -150,7 +150,7 @@
:for="'subadmins' + uniqueId">
{{ t('settings', 'Set user as admin for') }}
</label>
<NcSelect :id="'subadmins' + uniqueId"
<NcSelect :input-id="'subadmins' + uniqueId"
:close-on-select="false"
:disabled="isLoadingField"
:loading="loading.subadmins"
@ -190,8 +190,8 @@
@option:selected="setUserQuota" />
</template>
<template v-else-if="!isObfuscated">
<label :for="'quota-progress' + uniqueId">{{ userQuota }} ({{ usedSpace }})</label>
<NcProgressBar :id="'quota-progress' + uniqueId"
<span :id="'quota-progress' + uniqueId">{{ userQuota }} ({{ usedSpace }})</span>
<NcProgressBar :aria-labelledby="'quota-progress' + uniqueId"
class="row__progress"
:class="{
'row__progress--warn': usedQuota > 80,
@ -406,7 +406,7 @@ export default {
},
uniqueId() {
return this.user.id + this.rand
return encodeURIComponent(this.user.id + this.rand)
},
userGroupsLabels() {

View file

@ -26,7 +26,6 @@
<NcAppNavigation>
<NcAppNavigationNew button-id="new-user-button"
:text="t('settings','New user')"
button-class="icon-add"
@click="showNewUserMenu"
@keyup.enter="showNewUserMenu"
@keyup.space="showNewUserMenu">

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long