mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-19 17:14:57 +00:00
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:
parent
1dd283b0d8
commit
dad7a575f7
@ -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)"
|
||||
|
@ -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;
|
||||
|
@ -46,6 +46,7 @@
|
||||
</div>
|
||||
<div *ngIf="isAssignedToMe()">
|
||||
<activiti-form *ngIf="hasFormKey()" #activitiForm
|
||||
[showDebugButton]="debugMode"
|
||||
[taskId]="taskDetails.id"
|
||||
[showTitle]="showFormTitle"
|
||||
[showRefreshButton]="showFormRefreshButton"
|
||||
|
@ -42,6 +42,9 @@ export class ActivitiTaskDetails implements OnInit, OnChanges {
|
||||
@ViewChild('errorDialog')
|
||||
errorDialog: DebugElement;
|
||||
|
||||
@Input()
|
||||
debugMode: boolean = false;
|
||||
|
||||
@Input()
|
||||
taskId: string;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user