Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

Commit

Permalink
OC-20751 Add "Finish Later" button to Participate forms(fix: bug)
Browse files Browse the repository at this point in the history
  • Loading branch information
theywa committed Jan 9, 2024
1 parent 374dcb3 commit 60a3fc8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion public/js/src/module/controller-webform-oc.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,13 @@ function init(formEl, data, loadErrors = []) {
);

// For Participant empty-form view in order to show Close button on all pages
if (settings.participant && settings.type !== 'edit') {
// add settings.reasonForChange condition to prevent Close button show on all pages
// for non Participant empty-form that does not have calculate items
if (
settings.participant &&
settings.reasonForChange &&
settings.type !== 'edit'
) {
form.view.html.classList.add('empty-untouched');
}

Expand Down

0 comments on commit 60a3fc8

Please sign in to comment.