Hide the task audit button when there is no taskId (#2172)

This commit is contained in:
Maurizio Vitale 2017-08-04 13:45:10 +01:00 committed by Mario Romano
parent 10b7bdbfaa
commit f50c9d8b5c
2 changed files with 15 additions and 17 deletions

View File

@ -74,17 +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>
<div *ngIf="currentTaskId">
Task Audit log
<button
adf-task-audit
[task-id]="currentTaskId"
[download]="true"
md-icon-button (clicked)="onAuditClick($event)" (error)="onAuditError($event)" >
<md-icon>assignment_ind</md-icon>
</button>
<hr>
</div>
<md-card>
<md-card-content>
<activiti-task-attachments
@ -170,8 +170,8 @@
</md-card>
</div>
<div class="mdl-cell mdl-cell--10-col task-column mdl-shadow--2dp" *ngIf="isStartProcessMode()">
<adf-start-process
[appId]="appId"
<adf-start-process
[appId]="appId"
(start)="onStartProcessInstance($event)"
(cancel)="onCancelProcessInstance()">
</adf-start-process>

View File

@ -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 {