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

OC-20751 Add "Finish Later" button to Participate forms(fix: bug) #735

Merged
merged 1 commit into from
Jan 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading