File tree Expand file tree Collapse file tree 2 files changed +15
-7
lines changed Expand file tree Collapse file tree 2 files changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -115,17 +115,13 @@ export class ExceptionsTable extends LitElement {
115
115
}
116
116
}
117
117
118
- private getBugMetaForEntry ( entry : ExceptionListEntry ) {
119
- return entry . bugIds . map ( ( id ) => this . bugMeta [ id ] ) . filter ( ( meta ) => meta != null ) ;
120
- }
121
-
122
118
private renderTable ( ) {
123
119
return html `
124
120
< div class ="table-container ">
125
121
< table >
126
122
< thead >
127
123
< tr >
128
- < th > Bugs</ th >
124
+ < th class =" compact-col " > Bugs</ th >
129
125
< th class ="${ this . hasGlobalRules ? "" : "hidden-col" } "> Top Site</ th >
130
126
< th > Resource</ th >
131
127
< th > Classifier Features</ th >
@@ -138,7 +134,11 @@ export class ExceptionsTable extends LitElement {
138
134
( entry ) => html `
139
135
< tr id =${ entry . id ?? "" } >
140
136
< td >
141
- < bug-label .bugMeta =${ this . getBugMetaForEntry ( entry ) } > </ bug-label >
137
+ < bug-label
138
+ .bugMeta =${ entry . bugIds
139
+ . map ( ( id ) => this . bugMeta [ id ] )
140
+ . filter ( ( meta ) => meta != null ) }
141
+ > </ bug-label >
142
142
</ td >
143
143
< td class ="${ this . hasGlobalRules ? "" : "hidden-col" } ">
144
144
${ renderUrlPattern ( entry . topLevelUrlPattern ) }
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import "../bug-label";
10
10
import "./exception-dialog" ;
11
11
import { ExceptionDialog } from "./exception-dialog" ;
12
12
import tableStyles from "./table-styles.css.ts" ;
13
- import { getHostFromUrlPattern } from "./utils.ts" ;
13
+ import { getHostFromUrlPattern , getBugMetaForEntry } from "./utils.ts" ;
14
14
15
15
interface TopResource {
16
16
host : string ;
@@ -99,6 +99,7 @@ export class TopExceptionsTable extends LitElement {
99
99
< table >
100
100
< thead >
101
101
< tr >
102
+ < th class ="compact-col "> Bugs</ th >
102
103
< th class ="compact-col "> # Sites</ th >
103
104
< th > Resource</ th >
104
105
< th > Detail</ th >
@@ -108,6 +109,13 @@ export class TopExceptionsTable extends LitElement {
108
109
${ this . topResources . map (
109
110
( topResource ) => html `
110
111
< tr >
112
+ < td >
113
+ < bug-label
114
+ .bugMeta =${ Array . from ( topResource . bugIds )
115
+ . map ( ( id ) => this . bugMeta [ id ] )
116
+ . filter ( ( meta ) => meta != null ) }
117
+ > </ bug-label >
118
+ </ td >
111
119
< td class ="compact-col "> ${ topResource . topLevelSites . size } </ td >
112
120
< td > ${ topResource . host } </ td >
113
121
< td >
You can’t perform that action at this time.
0 commit comments