mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
add callback for VersionManagerComponent and VersionUploadComponent (#3008)
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { Component, Input, ViewEncapsulation } from '@angular/core';
|
||||
import { Component, Input, ViewEncapsulation, Output, EventEmitter } from '@angular/core';
|
||||
import { MinimalNodeEntryEntity } from 'alfresco-js-api';
|
||||
|
||||
@Component({
|
||||
@@ -26,7 +26,21 @@ import { MinimalNodeEntryEntity } from 'alfresco-js-api';
|
||||
})
|
||||
export class VersionManagerComponent {
|
||||
|
||||
/** The node whose version history you want to manage. */
|
||||
@Input()
|
||||
node: MinimalNodeEntryEntity;
|
||||
|
||||
@Output()
|
||||
uploadSuccess: EventEmitter<any> = new EventEmitter();
|
||||
|
||||
@Output()
|
||||
uploadError: EventEmitter<any> = new EventEmitter();
|
||||
|
||||
onUploadSuccess(event): void {
|
||||
this.uploadSuccess.emit(event);
|
||||
}
|
||||
|
||||
onUploadError(event): any {
|
||||
this.uploadError.emit(event);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user