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:
Pranav
2024-08-07 09:51:37 -07:00
committed by GitHub
parent 80a90d9d8c
commit ae938b2154

View File

@@ -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')"