fix(settings): Use heading for Profile and Profile picture sections

Signed-off-by: Christopher Ng <chrng8@gmail.com>

(cherry picked from commit ee11df8993)
Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
This commit is contained in:
Christopher Ng 2023-12-16 02:16:54 +01:00 committed by julia.kirschenheuter
parent c6d19b2d7d
commit e1d1491ca0
4 changed files with 6 additions and 13 deletions

View file

@ -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)
},

View file

@ -22,7 +22,7 @@
<template>
<section>
<HeaderBar :readable="propertyReadable" />
<HeaderBar :is-heading="true" :readable="propertyReadable" />
<ProfileCheckbox :profile-enabled.sync="profileEnabled" />

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long