()
| 565 | |
| 566 | |
| 567 | function getUploadBlockerMessage() { |
| 568 | const errors = validator |
| 569 | .getIssuesBySeverity({ what: 'edited', where: 'all' }).error; |
| 570 | |
| 571 | if (errors.length) { |
| 572 | return l10n.t('commit.outstanding_errors_message', { count: errors.length }); |
| 573 | |
| 574 | } else { |
| 575 | const comment = uploader.changeset?.tags?.comment ?? ''; |
| 576 | if (!comment.trim().length) { |
| 577 | return l10n.t('commit.comment_needed_message'); |
| 578 | } |
| 579 | } |
| 580 | return null; |
| 581 | } |
| 582 | |
| 583 | |
| 584 | function changeTags(_, changed, onInput) { |
no test coverage detected