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)">
|
(taskDeleted)="onTaskDeleted($event)">
|
||||||
</activiti-task-details>
|
</activiti-task-details>
|
||||||
<hr>
|
<hr>
|
||||||
|
<div *ngIf="currentTaskId">
|
||||||
Task Audit log
|
Task Audit log
|
||||||
<button *ngIf="currentTaskId"
|
<button
|
||||||
adf-task-audit
|
adf-task-audit
|
||||||
[task-id]="currentTaskId"
|
[task-id]="currentTaskId"
|
||||||
[download]="auditDownload.checked"
|
[download]="true"
|
||||||
md-icon-button (clicked)="onAuditClick($event)" (error)="onAuditError($event)" >
|
md-icon-button (clicked)="onAuditClick($event)" (error)="onAuditError($event)" >
|
||||||
<md-icon>assignment_ind</md-icon>
|
<md-icon>assignment_ind</md-icon>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<md-checkbox #auditDownload>Download</md-checkbox>
|
|
||||||
<hr>
|
<hr>
|
||||||
|
</div>
|
||||||
<md-card>
|
<md-card>
|
||||||
<md-card-content>
|
<md-card-content>
|
||||||
<activiti-task-attachments
|
<activiti-task-attachments
|
||||||
|
@ -286,10 +286,8 @@ export class ActivitiDemoComponent implements AfterViewInit, OnDestroy, OnInit {
|
|||||||
this.contentName = content.name;
|
this.contentName = content.name;
|
||||||
}
|
}
|
||||||
|
|
||||||
onAuditClick(event: any): void {
|
onAuditClick(event: any) {
|
||||||
this.fileShowed = true;
|
console.log(event);
|
||||||
this.content = event.value;
|
|
||||||
this.contentName = event.fileName;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
onAuditError(event: any): void {
|
onAuditError(event: any): void {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user