refactor: Use normalizeBranchName in ActiveBranchStatus component for virtual branch names (#4225)

This commit is contained in:
Pavel Laptev 2024-07-02 17:06:53 +02:00 committed by GitHub
parent be6eaa3156
commit 400381b8b4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,5 +1,6 @@
<script lang="ts">
import Button from '$lib/shared/Button.svelte';
import { normalizeBranchName } from '$lib/utils/branch';
import { getContextStore } from '$lib/utils/context';
import { openExternalUrl } from '$lib/utils/url';
import { BaseBranch, Branch } from '$lib/vbranches/types';
@ -52,7 +53,7 @@
disabled
help="Branch name that will be used when pushing. You can change it from the lane menu."
>
{isLaneCollapsed ? 'View branch' : $branch.displayName}
{normalizeBranchName($branch.displayName)}
</Button>
{/if}
{:else}