Skip to content

Commit

Permalink
Bug/7035 notify wait user action (#7317)
Browse files Browse the repository at this point in the history
* Add waitUserAction parameter into survey.notify #7035

* use showActions to wait for actions

* Change notify call
  • Loading branch information
andrewtelnov authored Nov 10, 2023
1 parent 59a8f66 commit e2ec2be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/survey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3288,12 +3288,12 @@ export class SurveyModel extends SurveyElementCore
}
this.setPropertyValue("completedStateText", text);
if (this.state === "completed" && this.showCompletedPage && !!this.completedState) {
this.notify(this.completedStateText, this.completedState, true);
this.notify(this.completedStateText, this.completedState, value === "error");
}
}
public notify(message: string, type: string, showActions: boolean = false): void {
this.notifier.showActions = showActions;
this.notifier.notify(message, type, type === "error");
this.notifier.notify(message, type, showActions);
}
/**
* Resets the survey [`state`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#state) and, optionally, [`data`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#data). If `state` is `"completed"`, it becomes `"running"`.
Expand Down

0 comments on commit e2ec2be

Please sign in to comment.