67611: Refactored import button to separate component within object-collection + moved calling of import modal to external-source tab

This commit is contained in:
Kristof De Langhe
2019-12-05 14:06:29 +01:00
parent 6ada3fae5b
commit 7a904f9bf7
13 changed files with 223 additions and 46 deletions

View File

@@ -53,6 +53,21 @@ export class ObjectCollectionComponent implements OnInit {
@Output() deselectObject: EventEmitter<ListableObject> = new EventEmitter<ListableObject>();
@Output() selectObject: EventEmitter<ListableObject> = new EventEmitter<ListableObject>();
/**
* Whether or not to add an import button to the object elements
*/
@Input() importable = false;
/**
* The config to use for the import button
*/
@Input() importConfig: { buttonLabel: string };
/**
* Send an import event to the parent component
*/
@Output() importObject: EventEmitter<ListableObject> = new EventEmitter<ListableObject>();
/**
* The link type of the rendered list elements
*/