Only enable LdapServer input fields if feature is enabled

This commit is contained in:
Johannes Zellner
2025-11-13 17:00:51 +01:00
parent f9eb588d4c
commit 9e1fbedc4d
+2 -2
View File
@@ -91,14 +91,14 @@ onMounted(async () => {
<FormGroup>
<label for="secretInput">{{ $t('users.exposedLdap.secret.label') }}</label>
<div description v-html="$t('users.exposedLdap.secret.description', { userDN: 'cn=admin,ou=system,dc=cloudron' })"></div>
<PasswordInput id="secretInput" v-model="secret" required />
<PasswordInput id="secretInput" v-model="secret" required :disabled="!enabled" />
<div class="has-error" v-show="editError.secret">{{ editError.secret }}</div>
</FormGroup>
<FormGroup>
<label for="allowlistInput">{{ $t('users.exposedLdap.ipRestriction.label') }}</label>
<div description v-html="$t('users.exposedLdap.ipRestriction.description')"></div>
<textarea id="allowlistInput" v-model="allowlist" rows="4" required></textarea>
<textarea id="allowlistInput" v-model="allowlist" rows="4" required :disabled="!enabled"></textarea>
<small style="helper-text">{{ $t('users.exposedLdap.ipRestriction.placeholder') }}</small>
<div class="has-error" v-show="editError.allowlist">{{ editError.allowlist }}</div>
</FormGroup>