#1467 customs outcome (#1483)

This commit is contained in:
Maurizio Vitale
2017-01-17 13:37:30 +00:00
committed by Mario Romano
parent c6126b6be1
commit 399b716d82
7 changed files with 56 additions and 11 deletions

View File

@@ -133,14 +133,14 @@ export class ActivitiStartForm extends ActivitiForm implements AfterViewChecked,
}
/** @override */
isOutcomeButtonVisible(outcome: FormOutcomeModel): boolean {
isOutcomeButtonVisible(outcome: FormOutcomeModel, isFormReadOnly: boolean): boolean {
if (outcome && outcome.isSystem && ( outcome.name === FormOutcomeModel.SAVE_ACTION ||
outcome.name === FormOutcomeModel.COMPLETE_ACTION )) {
return false;
} else if (outcome && outcome.name === FormOutcomeModel.START_PROCESS_ACTION) {
return true;
}
return super.isOutcomeButtonVisible(outcome);
return super.isOutcomeButtonVisible(outcome, isFormReadOnly);
}
/** @override */