From fdb232cb40e82db19d5dda06af138e21e3e89065 Mon Sep 17 00:00:00 2001 From: Vito Date: Fri, 13 Jan 2017 09:56:52 -0800 Subject: [PATCH] #1455 - added new check to show-hide validation icon next form title (#1463) --- ng2-components/ng2-activiti-form/README.md | 1 + .../src/components/activiti-form.component.html | 2 +- .../src/components/activiti-form.component.ts | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ng2-components/ng2-activiti-form/README.md b/ng2-components/ng2-activiti-form/README.md index a3f9ec4b1b..2fa4585432 100644 --- a/ng2-components/ng2-activiti-form/README.md +++ b/ng2-components/ng2-activiti-form/README.md @@ -238,6 +238,7 @@ The recommended set of properties can be found in the following table: | `showDebugButton` | boolean | false | Toggle debug options. | | `readOnly` | boolean | false | Toggle readonly state of the form. Enforces all form widgets render readonly if enabled. | | `showRefreshButton` | boolean | true | Toggle rendering of the `Refresh` button. | +| `showValidationIcon` | boolean | true | Toggle rendering of the validation icon next form title. | | `saveMetadata` | boolean | false | Store the value of the form as metadata. | | `path` | string | | Path of the folder where to store the metadata. | | `nameNode` (optional) | string | true | Name to assign to the new node where the metadata are stored. | diff --git a/ng2-components/ng2-activiti-form/src/components/activiti-form.component.html b/ng2-components/ng2-activiti-form/src/components/activiti-form.component.html index 48411ae393..b1af9c278b 100644 --- a/ng2-components/ng2-activiti-form/src/components/activiti-form.component.html +++ b/ng2-components/ng2-activiti-form/src/components/activiti-form.component.html @@ -5,7 +5,7 @@
- {{ form.isValid ? 'event_available' : 'event_busy' }} + {{ form.isValid ? 'event_available' : 'event_busy' }}

{{form.taskName}}

diff --git a/ng2-components/ng2-activiti-form/src/components/activiti-form.component.ts b/ng2-components/ng2-activiti-form/src/components/activiti-form.component.ts index ca97208d71..278c534234 100644 --- a/ng2-components/ng2-activiti-form/src/components/activiti-form.component.ts +++ b/ng2-components/ng2-activiti-form/src/components/activiti-form.component.ts @@ -133,6 +133,9 @@ export class ActivitiForm implements OnInit, AfterViewChecked, OnChanges { @Input() showRefreshButton: boolean = true; + @Input() + showValidationIcon: boolean = true; + @Output() formSaved: EventEmitter = new EventEmitter();