Skip to content

Commit

Permalink
fix(settings): Use heading for Profile and Profile picture sections
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Ng <chrng8@gmail.com>
  • Loading branch information
Pytal authored and JuliaKirschenheuter committed Dec 22, 2023
1 parent 7d8741c commit ee11df8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 13 deletions.
11 changes: 2 additions & 9 deletions apps/settings/src/components/PersonalInfo/AvatarSection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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" />

Expand Down Expand Up @@ -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">
Expand Down Expand Up @@ -163,12 +162,6 @@ export default {
}
},

computed: {
inputId() {
return `account-property-${this.avatar.name}`
},
},

created() {
subscribe('settings:display-name:updated', this.handleDisplayNameUpdate)
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

<template>
<section>
<HeaderBar :readable="propertyReadable" />
<HeaderBar :is-heading="true" :readable="propertyReadable" />

<ProfileCheckbox :profile-enabled.sync="profileEnabled" />

Expand Down
4 changes: 2 additions & 2 deletions dist/settings-vue-settings-personal-info.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/settings-vue-settings-personal-info.js.map

Large diffs are not rendered by default.

0 comments on commit ee11df8

Please sign in to comment.