MCPcopy Create free account
hub / github.com/facebook/Rapid / getUploadBlockerMessage

Function getUploadBlockerMessage

modules/ui/commit.js:567–581  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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) {

Callers 1

renderFunction · 0.85

Calls 2

getIssuesBySeverityMethod · 0.80
tMethod · 0.45

Tested by

no test coverage detected