Skip to content

Commit

Permalink
Allow editing incomplete registrations
Browse files Browse the repository at this point in the history
  • Loading branch information
canac committed Aug 22, 2024
1 parent 6b5b8a6 commit a92eba4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
1 change: 1 addition & 0 deletions app/scripts/controllers/editRegistrationModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ angular
) {
$scope.conference = angular.copy(conference);
$scope.registration = angular.copy(registration);
$scope.adminEditing = true; // Used in emailQuestion.html to prevent converting invalid email addresses to undefined

Check warning on line 18 in app/scripts/controllers/editRegistrationModal.js

View check run for this annotation

Codecov / codecov/patch

app/scripts/controllers/editRegistrationModal.js#L18

Added line #L18 was not covered by tests
$scope.adminEditRegistrant = _.find($scope.registration.registrants, {
id: registrantId,
});
Expand Down
2 changes: 1 addition & 1 deletion app/views/blocks/emailQuestion.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
class="form-control"
placeholder="[email protected]"
ng-model="answer.value"
ng-model-options="{ debounce: 1000 }"
ng-model-options="{ allowInvalid: adminEditing, debounce: 1000 }"
ng-required="block.required"
ng-disabled="editBlock || lockedStaffProfileBlock"
/>
Expand Down
7 changes: 1 addition & 6 deletions app/views/modals/editRegistration.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,7 @@ <h4 ng-show="saving">
>
Save &amp; Set as Completed
</button>
<button
ng-click="submit()"
ng-disabled="!editRegistrationForm.$valid"
class="btn btn-primary"
translate
>
<button ng-click="submit()" class="btn btn-primary" translate>
Save
</button>
</div>
Expand Down

0 comments on commit a92eba4

Please sign in to comment.