mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
Release Note for 4.2 - Initial draft. (#6390)
* Release Note for 4.2 - Initial draft. * update dep * documentation * fix * remove script * lint Co-authored-by: Eugenio Romano <eugenio.romano@alfresco.com> Co-authored-by: Eugenio Romano <eromano@users.noreply.github.com>
This commit is contained in:
@@ -32,30 +32,39 @@ export class VersionUploadComponent {
|
||||
comment: string;
|
||||
uploadVersion: boolean = false;
|
||||
|
||||
/** The target node. */
|
||||
@Input()
|
||||
node: Node;
|
||||
|
||||
/** New file for updating current version. */
|
||||
@Input()
|
||||
newFileVersion: File;
|
||||
|
||||
/** Toggles showing/hiding upload button. */
|
||||
@Input()
|
||||
showUploadButton: boolean = true;
|
||||
|
||||
/** Toggles showing/hiding of cancel button. */
|
||||
@Input()
|
||||
showCancelButton: boolean = true;
|
||||
|
||||
/** Emitted when the file is uploaded successfully. */
|
||||
@Output()
|
||||
success = new EventEmitter();
|
||||
|
||||
/** Emitted when an error occurs. */
|
||||
@Output()
|
||||
error = new EventEmitter();
|
||||
|
||||
/** Emitted when an cancelling during upload. */
|
||||
@Output()
|
||||
cancel = new EventEmitter();
|
||||
|
||||
/** Emitted when the version is changed. */
|
||||
@Output()
|
||||
versionChanged = new EventEmitter<boolean>();
|
||||
|
||||
/** Emitted when the comment is changed. */
|
||||
@Output()
|
||||
commentChanged = new EventEmitter<string>();
|
||||
|
||||
@@ -82,4 +91,12 @@ export class VersionUploadComponent {
|
||||
this.commentChanged.emit(this.comment);
|
||||
}
|
||||
|
||||
onSuccess(event: any) {
|
||||
this.success.emit(event);
|
||||
}
|
||||
|
||||
onError(event: any) {
|
||||
this.error.emit(event);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user