mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-1261] Task audit log directive (#2162)
* Create task audit directive * Remove fit * Add services * Add adf-task-audit documentation
This commit is contained in:
committed by
Mario Romano
parent
123ae3618a
commit
cc192d7dc4
@@ -74,6 +74,17 @@
|
||||
(taskDeleted)="onTaskDeleted($event)">
|
||||
</activiti-task-details>
|
||||
<hr>
|
||||
Task Audit log
|
||||
<button *ngIf="currentTaskId"
|
||||
adf-task-audit
|
||||
[task-id]="currentTaskId"
|
||||
[download]="auditDownload.checked"
|
||||
md-icon-button (clicked)="onAuditClick($event)" (error)="onAuditError($event)" >
|
||||
<md-icon>assignment_ind</md-icon>
|
||||
</button>
|
||||
|
||||
<md-checkbox #auditDownload>Download</md-checkbox>
|
||||
<hr>
|
||||
<md-card>
|
||||
<md-card-content>
|
||||
<activiti-task-attachments
|
||||
|
@@ -286,6 +286,16 @@ export class ActivitiDemoComponent implements AfterViewInit, OnDestroy, OnInit {
|
||||
this.contentName = content.name;
|
||||
}
|
||||
|
||||
onAuditClick(event: any): void {
|
||||
this.fileShowed = true;
|
||||
this.content = event.value;
|
||||
this.contentName = event.fileName;
|
||||
}
|
||||
|
||||
onAuditError(event: any): void {
|
||||
console.error('My custom error message' + event);
|
||||
}
|
||||
|
||||
onTaskCreated(data: any): void {
|
||||
this.currentTaskId = data.parentTaskId;
|
||||
this.taskList.reload();
|
||||
|
Reference in New Issue
Block a user