File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
templates/repo/issue/labels Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 38
38
39
39
<ul class="issue-label-list">
40
40
{{range .Labels}}
41
- <li class="item" {{if not .ArchivedUnix.IsZero}}data- archived-label{{end}}>
41
+ <li class="item {{if not .ArchivedUnix.IsZero}}archived-label gt-hidden {{end}}" >
42
42
<div class="label-title">
43
43
{{RenderLabel $.Context .}}
44
44
{{if .Description}}<br><small class="desc">{{.Description | RenderEmoji $.Context}}</small>{{end}}
Original file line number Diff line number Diff line change @@ -208,8 +208,8 @@ export function initHighlightArchivedLabels() {
208
208
if ( ! document . querySelectorAll ( '.show-archived-labels-checkbox' ) . length ) return ;
209
209
document . querySelector ( '.show-archived-labels-checkbox' )
210
210
. addEventListener ( 'input' , ( ) => {
211
- for ( const archivedLabel of document . querySelectorAll ( '[data- archived-label] ' ) ) {
212
- archivedLabel . classList . toggle ( 'archived-label ' ) ;
211
+ for ( const archivedLabel of document . querySelectorAll ( '. archived-label' ) ) {
212
+ archivedLabel . classList . toggle ( 'gt-hidden ' ) ;
213
213
}
214
214
} ) ;
215
215
}
You can’t perform that action at this time.
0 commit comments