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:
@@ -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')"
|
||||
|
||||
Reference in New Issue
Block a user