mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +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:
@@ -217,6 +217,7 @@ export class ContentNodeSelectorPanelComponent implements OnInit, OnDestroy {
|
||||
@Output()
|
||||
currentFolder: EventEmitter<Node> = new EventEmitter<Node>();
|
||||
|
||||
/** Emitted when folder loaded. */
|
||||
@Output()
|
||||
folderLoaded: EventEmitter<any> = new EventEmitter<any>();
|
||||
|
||||
|
@@ -41,6 +41,7 @@ export interface SelectedBucket {
|
||||
})
|
||||
export class SearchFilterComponent implements OnInit, OnDestroy {
|
||||
|
||||
/** Toggles whether to show or not the context facet filters. */
|
||||
@Input()
|
||||
showContextFacets: boolean = true;
|
||||
|
||||
|
@@ -28,8 +28,8 @@
|
||||
[versioning]="true"
|
||||
[file]="newFileVersion"
|
||||
[majorVersion]="isMajorVersion()"
|
||||
(success)="success.emit($event)"
|
||||
(error)="error.emit($event)">
|
||||
(success)="onSuccess($event)"
|
||||
(error)="onError($event)">
|
||||
</adf-upload-version-button>
|
||||
<button mat-raised-button (click)="cancelUpload()" id="adf-new-version-cancel" *ngIf="showCancelButton" >{{
|
||||
'ADF_VERSION_LIST.ACTIONS.UPLOAD.CANCEL'| translate }}
|
||||
|
@@ -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