Skip to content

Commit 49cc3fc

Browse files
PavelLaptevgitbutler-client
authored andcommitted
replace isPreview with existing isUnapplied
1 parent 4f045dc commit 49cc3fc

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

apps/desktop/src/lib/commit/CommitCard.svelte

+3-4
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
export let branch: VirtualBranch | undefined = undefined;
3232
export let commit: DetailedCommit | Commit;
3333
export let commitUrl: string | undefined = undefined;
34-
export let isPreview: boolean = false;
3534
export let isHeadCommit: boolean = false;
3635
export let isUnapplied = false;
3736
export let first = false;
@@ -232,7 +231,7 @@
232231
class:integrated={type === 'integrated'}
233232
></div>
234233

235-
{#if !isPreview}
234+
{#if !isUnapplied}
236235
{#if type === 'local' || type === 'localAndRemote'}
237236
<div class="commit__drag-icon">
238237
<Icon name="draggable-narrow" />
@@ -372,10 +371,10 @@
372371

373372
<div class="files-container">
374373
<BranchFilesList
375-
allowMultiple={!isPreview}
374+
allowMultiple={!isUnapplied}
376375
{files}
377376
{isUnapplied}
378-
readonly={type === 'remote' || isPreview}
377+
readonly={type === 'remote' || isUnapplied}
379378
/>
380379
</div>
381380
{/if}

apps/desktop/src/lib/components/BranchPreview.svelte

+3-3
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
{#if remoteCommits}
121121
{#each remoteCommits as commit, index (commit.id)}
122122
<CommitCard
123-
isPreview
123+
isUnapplied
124124
first={index === 0}
125125
last={index === remoteCommits.length - 1}
126126
{commit}
@@ -136,7 +136,7 @@
136136
{#if localCommits}
137137
{#each localCommits as commit, index (commit.id)}
138138
<CommitCard
139-
isPreview
139+
isUnapplied
140140
first={index === 0}
141141
last={index === localCommits.length - 1}
142142
{commit}
@@ -152,7 +152,7 @@
152152
{#if localAndRemoteCommits}
153153
{#each localAndRemoteCommits as commit, index (commit.id)}
154154
<CommitCard
155-
isPreview
155+
isUnapplied
156156
first={index === 0}
157157
last={index === localAndRemoteCommits.length - 1}
158158
{commit}

0 commit comments

Comments
 (0)