Skip to content

Commit

Permalink
Add TangyFormResponse.hasLocked property, set it when first submitting
Browse files Browse the repository at this point in the history
  • Loading branch information
rjcorwin committed Nov 17, 2020
1 parent 21059c3 commit 8a70352
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions tangy-form-reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ const tangyFormReducer = function (state = initialState, action) {
case 'UNLOCK':
return Object.assign({}, state, {
complete: false,
hasUnlocked: true,
endUnixtime: undefined,
form: Object.assign({}, state.form, {
complete: false,
Expand Down
1 change: 1 addition & 0 deletions tangy-form-response-model.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export class TangyFormResponseModel {
this.items = []
// States.
this.complete = false
this.hasUnlocked = false
// Focus indexes.
// @TODO: We can probably get rid of these indexes.
this.focusIndex = 0
Expand Down

0 comments on commit 8a70352

Please sign in to comment.