[CST-4319] Cannot map new items with Collection Admin

This commit is contained in:
Alessandro Martelli
2021-06-24 16:24:18 +02:00
parent ddb7d5181f
commit 3795ab0495
10 changed files with 82 additions and 18 deletions

View File

@@ -3,6 +3,7 @@ import { Collection } from '../../../core/shared/collection.model';
import { ObjectSelectComponent } from '../object-select/object-select.component';
import { isNotEmpty } from '../../empty.util';
import { ObjectSelectService } from '../object-select.service';
import { AuthorizationDataService } from '../../../core/data/feature-authorization/authorization-data.service';
@Component({
selector: 'ds-collection-select',
@@ -14,8 +15,9 @@ import { ObjectSelectService } from '../object-select.service';
*/
export class CollectionSelectComponent extends ObjectSelectComponent<Collection> {
constructor(protected objectSelectService: ObjectSelectService) {
super(objectSelectService);
constructor(protected objectSelectService: ObjectSelectService,
protected authorizationService: AuthorizationDataService) {
super(objectSelectService, authorizationService);
}
ngOnInit(): void {