AAE-32255 Start Process button in start event is showing and failing for form with custom outcomes (#10697)

* [AAE-32255] check if form has visible outcomes

* [AAE-32255] readded ?

* [AAE-32255] use pipe and observable

* [AAE-32255] check if exists
This commit is contained in:
Michaela
2025-03-11 17:21:55 +01:00
committed by GitHub
parent 08fd1f3d12
commit a74388513e
5 changed files with 69 additions and 19 deletions

View File

@@ -103,6 +103,10 @@ export abstract class FormBaseComponent {
*/
formStyle: string = '';
get hasVisibleOutcomes(): boolean {
return this.form?.outcomes?.some((outcome) => this.isOutcomeButtonVisible(outcome, this.form.readOnly));
}
get form(): FormModel {
return this._form;
}