mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-08-17 08:10:52 +03:00
refactor: Use normalizeBranchName in ActiveBranchStatus component for virtual branch names (#4225)
This commit is contained in:
parent
be6eaa3156
commit
400381b8b4
@ -1,5 +1,6 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import Button from '$lib/shared/Button.svelte';
|
import Button from '$lib/shared/Button.svelte';
|
||||||
|
import { normalizeBranchName } from '$lib/utils/branch';
|
||||||
import { getContextStore } from '$lib/utils/context';
|
import { getContextStore } from '$lib/utils/context';
|
||||||
import { openExternalUrl } from '$lib/utils/url';
|
import { openExternalUrl } from '$lib/utils/url';
|
||||||
import { BaseBranch, Branch } from '$lib/vbranches/types';
|
import { BaseBranch, Branch } from '$lib/vbranches/types';
|
||||||
@ -52,7 +53,7 @@
|
|||||||
disabled
|
disabled
|
||||||
help="Branch name that will be used when pushing. You can change it from the lane menu."
|
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>
|
</Button>
|
||||||
{/if}
|
{/if}
|
||||||
{:else}
|
{:else}
|
||||||
|
Loading…
Reference in New Issue
Block a user