Skip to content

Commit 364b65a

Browse files
committed
Fixes default branch icon
1 parent a71fc92 commit 364b65a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/webviews/apps/plus/home/components/branch-card.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -777,6 +777,7 @@ export abstract class GlBranchCardBase extends GlElement {
777777
?hasChanges=${hasChanges}
778778
upstream=${this.branch.upstream?.name}
779779
?worktree=${this.branch.worktree != null}
780+
?is-default=${this.branch.worktree?.isDefault ?? false}
780781
></gl-branch-icon>`;
781782
}
782783

src/webviews/apps/shared/components/branch-icon.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ export class GlBranchIcon extends LitElement {
6969
@property({ type: Boolean })
7070
worktree: boolean = false;
7171

72+
@property({ type: Boolean, attribute: 'is-default' })
73+
isDefault: boolean = false;
74+
7275
override render(): unknown {
7376
return html`<gl-tooltip placement="bottom"
7477
>${this.renderIcon()}<span slot="content">${this.renderTooltipContent()}</span></gl-tooltip
@@ -110,7 +113,7 @@ export class GlBranchIcon extends LitElement {
110113
break;
111114
}
112115

113-
if (this.worktree) {
116+
if (this.worktree && this.isDefault === false) {
114117
return svg`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
115118
<path
116119
fill="var(--gl-icon-color-foreground, #c5c5c5)"

0 commit comments

Comments
 (0)