19 lines · 576 B · TypeScript
RawDownload
export function resolveReviewAvailability(input: {  readonly hasEnvironmentPresentation: boolean;  readonly isEnvironmentConnected: boolean;  readonly hasCachedSelectedDiff: boolean;  readonly hasAnyCachedDiff: boolean;}): {  readonly showConnectionNotice: boolean;  readonly showSectionToolbar: boolean;} {  const showConnectionNotice =    input.hasEnvironmentPresentation &&    !input.isEnvironmentConnected &&    !input.hasCachedSelectedDiff;   return {    showConnectionNotice,    showSectionToolbar: !showConnectionNotice || input.hasAnyCachedDiff,  };}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t