()
| 46 | } |
| 47 | |
| 48 | function getUi(): HTMLElement { |
| 49 | const cancelButton = <button type="button" className="btn-link Link--muted text-underline rgh-sync-pr-commit-title"> |
| 50 | Cancel |
| 51 | </button>; |
| 52 | return $optional('.rgh-sync-pr-commit-title-note') ?? ( |
| 53 | <p className="note rgh-sync-pr-commit-title-note"> |
| 54 | The title of this PR will be updated to match this title. {cancelButton} |
| 55 | </p> |
| 56 | ); |
| 57 | } |
| 58 | |
| 59 | function updateUi(): void { |
| 60 | if (needsSubmission()) { |
no outgoing calls
no test coverage detected