fix: Disable the password section is the admin has disabled user profile update (#9910)
This PR updates the profile settings page to completely disable the password section, including the heading, if the admin has disabled user profile updates. Previously, the section heading was shown with empty content, which caused confusion.
This commit is contained in:
parent
80a90d9d8c
commit
ae938b2154
@ -229,8 +229,11 @@ export default {
|
||||
</button>
|
||||
</div>
|
||||
</FormSection>
|
||||
<FormSection :title="$t('PROFILE_SETTINGS.FORM.PASSWORD_SECTION.TITLE')">
|
||||
<ChangePassword v-if="!globalConfig.disableUserProfileUpdate" />
|
||||
<FormSection
|
||||
v-if="!globalConfig.disableUserProfileUpdate"
|
||||
:title="$t('PROFILE_SETTINGS.FORM.PASSWORD_SECTION.TITLE')"
|
||||
>
|
||||
<ChangePassword />
|
||||
</FormSection>
|
||||
<FormSection
|
||||
:title="$t('PROFILE_SETTINGS.FORM.AUDIO_NOTIFICATIONS_SECTION.TITLE')"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user