[ADF-2975] New input for File Upload Button component (#3299)

* new nodeType input

* unit tests

* content type fix

* remove package-lock.json files
This commit is contained in:
Alex Bolboșenco
2018-05-10 21:36:31 +03:00
committed by Eugenio Romano
parent 97f888d49c
commit 4c7a63c95a
6 changed files with 61 additions and 20795 deletions

View File

@@ -53,6 +53,10 @@ export abstract class UploadBase {
@Input()
comment: string;
/** Custom node type for uploaded file */
@Input()
nodeType: string = 'cm:content';
/** Emitted when the file is uploaded successfully. */
@Output()
success = new EventEmitter();
@@ -139,7 +143,8 @@ export abstract class UploadBase {
majorVersion: this.majorVersion,
newVersion: this.versioning,
parentId: parentId,
path: path
path: path,
nodeType: this.nodeType
});
}