aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2023-12-16 02:16:54 +0100
committerjulia.kirschenheuter <julia.kirschenheuter@nextcloud.com>2023-12-27 11:39:06 +0100
commite1d1491ca06153b55252d4f5d9b967ac34e25ef4 (patch)
tree8dc7d3ac7652c1c3c8ffc41f346f42ec0a9b172e /apps
parentc6d19b2d7d08373de865b20db3884e629834d246 (diff)
downloadnextcloud-server-e1d1491ca06153b55252d4f5d9b967ac34e25ef4.tar.gz
nextcloud-server-e1d1491ca06153b55252d4f5d9b967ac34e25ef4.zip
fix(settings): Use heading for Profile and Profile picture sections
Signed-off-by: Christopher Ng <chrng8@gmail.com> (cherry picked from commit ee11df899312d90cad4176a3427cd8878badf6e6) Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
Diffstat (limited to 'apps')
-rw-r--r--apps/settings/src/components/PersonalInfo/AvatarSection.vue11
-rw-r--r--apps/settings/src/components/PersonalInfo/ProfileSection/ProfileSection.vue2
2 files changed, 3 insertions, 10 deletions
diff --git a/apps/settings/src/components/PersonalInfo/AvatarSection.vue b/apps/settings/src/components/PersonalInfo/AvatarSection.vue
index 9c56fe277af..ed6cd2c423c 100644
--- a/apps/settings/src/components/PersonalInfo/AvatarSection.vue
+++ b/apps/settings/src/components/PersonalInfo/AvatarSection.vue
@@ -25,7 +25,7 @@
<h3 class="hidden-visually">
{{ t('settings', 'Your profile information') }}
</h3>
- <HeaderBar :input-id="avatarChangeSupported ? inputId : null"
+ <HeaderBar :is-heading="true"
:readable="avatar.readable"
:scope.sync="avatar.scope" />
@@ -63,8 +63,7 @@
</NcButton>
</div>
<span>{{ t('settings', 'The file must be a PNG or JPG') }}</span>
- <input :id="inputId"
- ref="input"
+ <input ref="input"
type="file"
:accept="validMimeTypes.join(',')"
@change="onChange">
@@ -163,12 +162,6 @@ export default {
}
},
- computed: {
- inputId() {
- return `account-property-${this.avatar.name}`
- },
- },
-
created() {
subscribe('settings:display-name:updated', this.handleDisplayNameUpdate)
},
diff --git a/apps/settings/src/components/PersonalInfo/ProfileSection/ProfileSection.vue b/apps/settings/src/components/PersonalInfo/ProfileSection/ProfileSection.vue
index 2f1cc935f22..6b775092c6c 100644
--- a/apps/settings/src/components/PersonalInfo/ProfileSection/ProfileSection.vue
+++ b/apps/settings/src/components/PersonalInfo/ProfileSection/ProfileSection.vue
@@ -22,7 +22,7 @@
<template>
<section>
- <HeaderBar :readable="propertyReadable" />
+ <HeaderBar :is-heading="true" :readable="propertyReadable" />
<ProfileCheckbox :profile-enabled.sync="profileEnabled" />