File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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) "
You can’t perform that action at this time.
0 commit comments