From f50c9d8b5cb0645ca978a46f29e9c75cc4b11e67 Mon Sep 17 00:00:00 2001 From: Maurizio Vitale Date: Fri, 4 Aug 2017 13:45:10 +0100 Subject: [PATCH] Hide the task audit button when there is no taskId (#2172) --- .../activiti/activiti-demo.component.html | 26 +++++++++---------- .../activiti/activiti-demo.component.ts | 6 ++--- 2 files changed, 15 insertions(+), 17 deletions(-) diff --git a/demo-shell-ng2/app/components/activiti/activiti-demo.component.html b/demo-shell-ng2/app/components/activiti/activiti-demo.component.html index a8ea49a6dd..c0a5afab2b 100644 --- a/demo-shell-ng2/app/components/activiti/activiti-demo.component.html +++ b/demo-shell-ng2/app/components/activiti/activiti-demo.component.html @@ -74,17 +74,17 @@ (taskDeleted)="onTaskDeleted($event)">
- Task Audit log - - - Download -
+
+ Task Audit log + +
+
- diff --git a/demo-shell-ng2/app/components/activiti/activiti-demo.component.ts b/demo-shell-ng2/app/components/activiti/activiti-demo.component.ts index 44d4a9396a..7c8f9d36ef 100644 --- a/demo-shell-ng2/app/components/activiti/activiti-demo.component.ts +++ b/demo-shell-ng2/app/components/activiti/activiti-demo.component.ts @@ -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 {