mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +00:00
[AAE-8740] Add a confirmation message in ADW
This commit is contained in:
@@ -161,6 +161,7 @@ export abstract class FormBaseComponent {
|
||||
* @param outcome Form outcome model
|
||||
*/
|
||||
onOutcomeClicked(outcome: FormOutcomeModel): boolean {
|
||||
debugger
|
||||
if (!this.readOnly && outcome && this.form) {
|
||||
|
||||
if (!this.onExecuteOutcome(outcome)) {
|
||||
|
@@ -65,6 +65,7 @@ export class FormModel implements ProcessFormModel {
|
||||
|
||||
readonly id: string | number;
|
||||
readonly name: string;
|
||||
readonly confirmMessage: {show: boolean, message: string};
|
||||
readonly taskId: string;
|
||||
readonly taskName = FormModel.UNSET_TASK_NAME;
|
||||
readonly processDefinitionId: string;
|
||||
@@ -93,6 +94,7 @@ export class FormModel implements ProcessFormModel {
|
||||
if (json) {
|
||||
this.id = json.id;
|
||||
this.name = json.name;
|
||||
this.confirmMessage = json.confirmMessage || {};
|
||||
this.taskId = json.taskId;
|
||||
this.taskName = json.taskName || json.name || FormModel.UNSET_TASK_NAME;
|
||||
this.processDefinitionId = json.processDefinitionId;
|
||||
|
Reference in New Issue
Block a user