|
|
|
@ -22,6 +22,7 @@ import { Observable } from 'rxjs';
|
|
|
|
|
import { map, takeUntil } from 'rxjs/operators';
|
|
|
|
|
import { AddOrganizationComponent } from '../add-organization/add-organization.component';
|
|
|
|
|
import { isNullOrUndefined } from 'util';
|
|
|
|
|
import { ConfigurationService } from '@app/core/services/configuration/configuration.service';
|
|
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
|
selector: 'app-general-tab',
|
|
|
|
@ -71,7 +72,8 @@ export class GeneralTabComponent extends BaseComponent implements OnInit {
|
|
|
|
|
private externalSourcesService: ExternalSourcesService,
|
|
|
|
|
private _service: DmpService,
|
|
|
|
|
private dialog: MatDialog,
|
|
|
|
|
private language: TranslateService
|
|
|
|
|
private language: TranslateService,
|
|
|
|
|
private configurationService: ConfigurationService
|
|
|
|
|
) {
|
|
|
|
|
super();
|
|
|
|
|
}
|
|
|
|
@ -194,6 +196,10 @@ export class GeneralTabComponent extends BaseComponent implements OnInit {
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
showOrganizationCreator(): boolean {
|
|
|
|
|
return this.configurationService.allowOrganizationCreator;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
canAddOrganizations(): boolean {
|
|
|
|
|
if (!isNullOrUndefined(this.formGroup.get('organizations'))) {
|
|
|
|
|
return this.formGroup.get('organiztions').disabled;
|
|
|
|
|