diff options
author | Christopher Ng <chrng8@gmail.com> | 2023-12-15 17:16:54 -0800 |
---|---|---|
committer | julia.kirschenheuter <julia.kirschenheuter@nextcloud.com> | 2023-12-22 17:21:37 +0100 |
commit | ee11df899312d90cad4176a3427cd8878badf6e6 (patch) | |
tree | c15f390683985f5f1254fbe566ce5e5225941db3 /apps | |
parent | 7d8741c53f7be7e77139f124e441e2ba10e66bf2 (diff) | |
download | nextcloud-server-ee11df899312d90cad4176a3427cd8878badf6e6.tar.gz nextcloud-server-ee11df899312d90cad4176a3427cd8878badf6e6.zip |
fix(settings): Use heading for Profile and Profile picture sections
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/settings/src/components/PersonalInfo/AvatarSection.vue | 11 | ||||
-rw-r--r-- | apps/settings/src/components/PersonalInfo/ProfileSection/ProfileSection.vue | 2 |
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" /> |