@@ -95,42 +95,33 @@ export class GlOverview extends SignalWatcher(LitElement) {
95
95
if ( overview == null ) return nothing ;
96
96
const { repository } = overview ;
97
97
return html `
98
- ${ when (
99
- repository . branches . recent . length > 0 ,
100
- ( ) => html `
101
- < gl-branch-section
102
- label ="Recent "
103
- .isFetching =${ isFetching }
104
- .repo =${ repository . path }
105
- .branches=${ repository . branches . recent }
106
- >
107
- < gl-branch-threshold-filter
108
- slot ="heading-actions "
109
- @gl-change =${ this . onChangeRecentThresholdFilter . bind ( this ) }
110
- .options =${ [
111
- { value : 'OneDay' , label : '1 day' } ,
112
- { value : 'OneWeek' , label : '1 week' } ,
113
- { value : 'OneMonth' , label : '1 month' } ,
114
- ] satisfies {
115
- value : OverviewRecentThreshold ;
116
- label : string ;
117
- } [ ] }
118
- .disabled=${ isFetching }
119
- .value=${ this . _overviewState . filter . recent ?. threshold }
120
- > </ gl-branch-threshold-filter >
121
- </ gl-branch-section >
122
- ` ,
123
- ) }
124
- ${ when (
125
- repository . branches . stale . length > 0 ,
126
- ( ) => html `
127
- < gl-branch-section
128
- label ="Stale (${ repository . branches . stale . length } ) "
129
- .repo =${ repository . path }
130
- .branches =${ repository . branches . stale }
131
- > </ gl-branch-section >
132
- ` ,
133
- ) }
98
+ < gl-branch-section
99
+ label ="Recent "
100
+ .isFetching =${ isFetching }
101
+ .repo =${ repository . path }
102
+ .branches=${ repository . branches . recent }
103
+ >
104
+ < gl-branch-threshold-filter
105
+ slot ="heading-actions "
106
+ @gl-change =${ this . onChangeRecentThresholdFilter . bind ( this ) }
107
+ .options =${ [
108
+ { value : 'OneDay' , label : '1 day' } ,
109
+ { value : 'OneWeek' , label : '1 week' } ,
110
+ { value : 'OneMonth' , label : '1 month' } ,
111
+ ] satisfies {
112
+ value : OverviewRecentThreshold ;
113
+ label : string ;
114
+ } [ ] }
115
+ .disabled=${ isFetching }
116
+ .value=${ this . _overviewState . filter . recent ?. threshold }
117
+ > </ gl-branch-threshold-filter >
118
+ </ gl-branch-section >
119
+ < gl-branch-section
120
+ label ="Stale "
121
+ ?hidden =${ this . _overviewState . filter . stale ?. show !== true }
122
+ .repo =${ repository . path }
123
+ .branches=${ repository . branches . stale }
124
+ > </ gl-branch-section >
134
125
` ;
135
126
}
136
127
}
0 commit comments