1
0

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

@@ -79,6 +79,16 @@ export class ObjectListComponent {
*/
@Input() hidePaginationDetail = false;
/**
* Whether or not to add an import button to the object
*/
@Input() importable = false;
/**
* Config used for the import button
*/
@Input() importConfig: { importLabel: string };
/**
* The current listable objects
*/
@@ -137,6 +147,12 @@ export class ObjectListComponent {
@Output() deselectObject: EventEmitter<ListableObject> = new EventEmitter<ListableObject>();
@Output() selectObject: EventEmitter<ListableObject> = new EventEmitter<ListableObject>();
/**
* Send an import event to the parent component
*/
@Output() importObject: EventEmitter<ListableObject> = new EventEmitter<ListableObject>();
/**
* An event fired when the sort field is changed.
* Event's payload equals to the newly selected sort field.