Skip to content

Commit 394fff3

Browse files
committed
fix: rename isBottomBranch/isTopBranch
1 parent c43bea2 commit 394fff3

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

apps/desktop/src/lib/branch/SeriesHeader.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@
3737
3838
interface Props {
3939
branch: PatchSeries;
40-
isTopSeries: boolean;
41-
isBottomSeries: boolean;
40+
isTopBranch: boolean;
41+
isBottomBranch: boolean;
4242
lastPush: Date | undefined;
4343
}
4444
45-
const { branch, isTopSeries, isBottomSeries, lastPush }: Props = $props();
45+
const { branch, isTopBranch: isTopSeries, isBottomBranch: isBottomSeries, lastPush }: Props = $props();
4646
4747
let descriptionVisible = $state(!!branch.description);
4848

apps/desktop/src/lib/stack/EmptySeries.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<script lang="ts">
22
import { getColorFromBranchType } from '@gitbutler/ui/utils/getColorFromBranchType';
33
interface Props {
4-
isBottom?: boolean;
4+
isBottomBranch?: boolean;
55
}
66
7-
const { isBottom }: Props = $props();
7+
const { isBottomBranch }: Props = $props();
88
</script>
99

1010
<div class="empty-series" style:--commit-color={getColorFromBranchType('local')}>
11-
<div class="commit-line" class:dashed={isBottom}></div>
11+
<div class="commit-line" class:dashed={isBottomBranch}></div>
1212
<div class="text-13 text-body empty-series__label">
1313
This is an empty branch.
1414
<br />

apps/desktop/src/lib/stack/SeriesList.svelte

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,17 +61,17 @@
6161
</script>
6262

6363
{#each nonArchivedSeries as currentSeries, idx ('name' in currentSeries ? currentSeries.name : undefined)}
64-
{@const isTopSeries = idx === 0}
65-
{@const isBottomSeries = idx === nonArchivedSeries.length - 1}
66-
{#if !isTopSeries}
64+
{@const isTopBranch = idx === 0}
65+
{@const isBottomBranch = idx === nonArchivedSeries.length - 1}
66+
{#if !isTopBranch}
6767
<SeriesDividerLine
6868
topPatchStatus={isPatchSeries(currentSeries) ? currentSeries?.patches?.[0]?.status : 'error'}
6969
/>
7070
{/if}
7171

7272
{#if !isError(currentSeries)}
7373
<CurrentSeries {currentSeries}>
74-
<SeriesHeader branch={currentSeries} {isTopSeries} {isBottomSeries} {lastPush} />
74+
<SeriesHeader branch={currentSeries} {isTopBranch} {isBottomBranch} {lastPush} />
7575

7676
{#if currentSeries.upstreamPatches.length === 0 && currentSeries.patches.length === 0}
7777
<div>
@@ -82,7 +82,7 @@
8282
{#snippet overlay({ hovered, activated })}
8383
<CardOverlay {hovered} {activated} label="Move here" />
8484
{/snippet}
85-
<EmptySeries isBottom={isBottomSeries} />
85+
<EmptySeries {isBottomBranch} />
8686
</Dropzone>
8787
</div>
8888
{/if}

0 commit comments

Comments
 (0)