mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[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:
committed by
Eugenio Romano
parent
97f888d49c
commit
4c7a63c95a
@@ -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
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user