disable debug button by default (#1836)

- debug button is now disabled by default for the Form and Task Details
- debug mode now enabled by the demo shell explicitly
This commit is contained in:
Denys Vuika 2017-04-24 12:11:47 +01:00 committed by Mario Romano
parent 1dd283b0d8
commit dad7a575f7
4 changed files with 6 additions and 2 deletions

View File

@ -63,6 +63,7 @@
</div>
<div class="mdl-cell mdl-cell--7-col task-column mdl-shadow--2dp">
<activiti-task-details #activitidetails
[debugMode]="true"
[taskId]="currentTaskId"
(formCompleted)="onFormCompleted($event)"
(formContentClicked)="onFormContentClick($event)"

View File

@ -26,7 +26,6 @@ import { FormEvent, FormErrorEvent } from './../events/index';
import { WidgetVisibilityService } from './../services/widget-visibility.service';
declare let dialogPolyfill: any;
declare var componentHandler: any;
/**
@ -118,7 +117,7 @@ export class ActivitiForm implements OnInit, AfterViewChecked, OnChanges {
showSaveButton: boolean = true;
@Input()
showDebugButton: boolean = true;
showDebugButton: boolean = false;
@Input()
readOnly: boolean = false;

View File

@ -46,6 +46,7 @@
</div>
<div *ngIf="isAssignedToMe()">
<activiti-form *ngIf="hasFormKey()" #activitiForm
[showDebugButton]="debugMode"
[taskId]="taskDetails.id"
[showTitle]="showFormTitle"
[showRefreshButton]="showFormRefreshButton"

View File

@ -42,6 +42,9 @@ export class ActivitiTaskDetails implements OnInit, OnChanges {
@ViewChild('errorDialog')
errorDialog: DebugElement;
@Input()
debugMode: boolean = false;
@Input()
taskId: string;