Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
PavelLaptev authored and ndom91 committed Oct 28, 2024
1 parent 60ccac2 commit 7a03e89
Showing 1 changed file with 20 additions and 18 deletions.
38 changes: 20 additions & 18 deletions apps/desktop/src/lib/pr/StackingPullRequestCard.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
return { style, icon, text };
}
if ($checksLoading) {
return { style: 'neutral', icon: 'spinner', text: ' Checks' };
return { style: 'neutral', icon: 'spinner', text: 'Checks' };
}
return { style: 'neutral', icon: undefined, text: 'No PR checks' };
Expand Down Expand Up @@ -145,23 +145,25 @@
}}
/>
</ContextMenuSection>
{#if checksTagInfo && checksTagInfo.text !== 'No PR checks' && checksTagInfo.text === 'Checks'}
<ContextMenuSection>
<ContextMenuItem
label="Open checks"
onclick={() => {
openExternalUrl(`${$pr.htmlUrl}/checks`);
contextMenuEl?.close();
}}
/>
<ContextMenuItem
label="Copy checks"
onclick={() => {
copyToClipboard(`${$pr.htmlUrl}/checks`);
contextMenuEl?.close();
}}
/>
</ContextMenuSection>
{#if checksTagInfo}
{#if checksTagInfo.text !== 'No PR checks' && checksTagInfo.text !== 'Checks'}
<ContextMenuSection>
<ContextMenuItem
label="Open checks"
onclick={() => {
openExternalUrl(`${$pr.htmlUrl}/checks`);
contextMenuEl?.close();
}}
/>
<ContextMenuItem
label="Copy checks"
onclick={() => {
copyToClipboard(`${$pr.htmlUrl}/checks`);
contextMenuEl?.close();
}}
/>
</ContextMenuSection>
{/if}
{/if}
</ContextMenu>

Expand Down

0 comments on commit 7a03e89

Please sign in to comment.