mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-19 17:14:57 +00:00
Hide the task audit button when there is no taskId (#2172)
This commit is contained in:
parent
10b7bdbfaa
commit
f50c9d8b5c
@ -74,17 +74,17 @@
|
||||
(taskDeleted)="onTaskDeleted($event)">
|
||||
</activiti-task-details>
|
||||
<hr>
|
||||
<div *ngIf="currentTaskId">
|
||||
Task Audit log
|
||||
<button *ngIf="currentTaskId"
|
||||
<button
|
||||
adf-task-audit
|
||||
[task-id]="currentTaskId"
|
||||
[download]="auditDownload.checked"
|
||||
[download]="true"
|
||||
md-icon-button (clicked)="onAuditClick($event)" (error)="onAuditError($event)" >
|
||||
<md-icon>assignment_ind</md-icon>
|
||||
</button>
|
||||
|
||||
<md-checkbox #auditDownload>Download</md-checkbox>
|
||||
<hr>
|
||||
</div>
|
||||
<md-card>
|
||||
<md-card-content>
|
||||
<activiti-task-attachments
|
||||
|
@ -286,10 +286,8 @@ 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;
|
||||
onAuditClick(event: any) {
|
||||
console.log(event);
|
||||
}
|
||||
|
||||
onAuditError(event: any): void {
|
||||
|
Loading…
x
Reference in New Issue
Block a user