mirror of https://github.com/portainer/portainer
parent
6e53bf5dc7
commit
5a3687a564
|
@ -72,11 +72,9 @@ export default class OAuthSettingsController {
|
||||||
|
|
||||||
onChangeHideInternalAuth(checked) {
|
onChangeHideInternalAuth(checked) {
|
||||||
this.$scope.$evalAsync(() => {
|
this.$scope.$evalAsync(() => {
|
||||||
if (this.featureService.isLimitedToBE(this.limitedFeature)) {
|
if (!this.isLimitedToBE) {
|
||||||
return;
|
this.settings.HideInternalAuth = checked;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.settings.HideInternalAuth = checked;
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
import _ from 'lodash-es';
|
import _ from 'lodash-es';
|
||||||
|
|
||||||
import { FeatureId } from '@/portainer/feature-flags/enums';
|
import { FeatureId } from '@/portainer/feature-flags/enums';
|
||||||
|
import { isLimitedToBE } from '@/portainer/feature-flags/feature-flags.service';
|
||||||
|
|
||||||
export default class AdSettingsController {
|
export default class AdSettingsController {
|
||||||
/* @ngInject */
|
/* @ngInject */
|
||||||
constructor(LDAPService, featureService) {
|
constructor(LDAPService) {
|
||||||
this.LDAPService = LDAPService;
|
this.LDAPService = LDAPService;
|
||||||
this.featureService = featureService;
|
|
||||||
|
|
||||||
this.domainSuffix = '';
|
this.domainSuffix = '';
|
||||||
this.limitedFeatureId = FeatureId.HIDE_INTERNAL_AUTH;
|
this.limitedFeatureId = FeatureId.HIDE_INTERNAL_AUTH;
|
||||||
|
@ -58,7 +58,7 @@ export default class AdSettingsController {
|
||||||
}
|
}
|
||||||
|
|
||||||
isSaveSettingButtonDisabled() {
|
isSaveSettingButtonDisabled() {
|
||||||
return this.featureService.isLimitedToBE(this.limitedFeatureId) || !this.isLdapFormValid();
|
return isLimitedToBE(this.limitedFeatureId) || !this.isLdapFormValid();
|
||||||
}
|
}
|
||||||
|
|
||||||
$onInit() {
|
$onInit() {
|
||||||
|
|
Loading…
Reference in New Issue