Skip to content

Commit 57b1a3d

Browse files
FrancescoMolinaroPiaget Bouaka Donfack
authored andcommitted
[CST-22830] fix missing outputs and inputs in themed component
1 parent 7cdeb29 commit 57b1a3d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/app/shared/dso-selector/modal-wrappers/create-item-parent-selector/themed-create-item-parent-selector.component.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
import {
22
Component,
3+
EventEmitter,
34
Input,
5+
Output,
46
} from '@angular/core';
57
import { ThemedComponent } from 'src/app/shared/theme-support/themed.component';
68

9+
import { DSpaceObject } from '../../../../core/shared/dspace-object.model';
710
import { CreateItemParentSelectorComponent } from './create-item-parent-selector.component';
811

912
/**
@@ -19,8 +22,11 @@ import { CreateItemParentSelectorComponent } from './create-item-parent-selector
1922
export class ThemedCreateItemParentSelectorComponent
2023
extends ThemedComponent<CreateItemParentSelectorComponent> {
2124
@Input() entityType: string;
25+
@Input() emitOnly: boolean;
2226

23-
protected inAndOutputNames: (keyof CreateItemParentSelectorComponent & keyof this)[] = ['entityType'];
27+
@Output() select: EventEmitter<DSpaceObject> = new EventEmitter<DSpaceObject>();
28+
29+
protected inAndOutputNames: (keyof CreateItemParentSelectorComponent & keyof this)[] = ['entityType', 'select', 'emitOnly'];
2430

2531
protected getComponentName(): string {
2632
return 'CreateItemParentSelectorComponent';

0 commit comments

Comments
 (0)