Commit 1b81824
fix(Sign): show drawing prompt in GRAPHIC_ONLY mode without placed element
needCreateSignature computed was duplicating the validator logic and also
required a placed visual element box, so it returned false for clickToSign
documents in GRAPHIC_ONLY mode.
Added signerHasSignRequest computed (true when the current user has a
signRequestId) and pass it to requirementValidator.getFirstUnmetRequirement()
in both confirmSignDocument and executeSigningAction so the validator can
prompt for the signature drawing even when no element box was placed.
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>1 parent 3f7d0dd commit 1b81824
1 file changed
Lines changed: 11 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
271 | 274 | | |
272 | 275 | | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
| 276 | + | |
290 | 277 | | |
291 | 278 | | |
292 | 279 | | |
293 | 280 | | |
294 | 281 | | |
295 | 282 | | |
296 | 283 | | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
297 | 289 | | |
298 | 290 | | |
299 | 291 | | |
| |||
520 | 512 | | |
521 | 513 | | |
522 | 514 | | |
| 515 | + | |
523 | 516 | | |
524 | 517 | | |
525 | 518 | | |
| |||
544 | 537 | | |
545 | 538 | | |
546 | 539 | | |
| 540 | + | |
547 | 541 | | |
548 | 542 | | |
549 | 543 | | |
| |||
0 commit comments