MCPcopy Index your code
hub / github.com/refined-github/refined-github / getUi

Function getUi

source/features/sync-pr-commit-title.tsx:48–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

46}
47
48function 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
59function updateUi(): void {
60 if (needsSubmission()) {

Callers 3

updateUiFunction · 0.85
disableSubmissionFunction · 0.85
updateUiFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected