File tree Expand file tree Collapse file tree 2 files changed +36
-1
lines changed Expand file tree Collapse file tree 2 files changed +36
-1
lines changed Original file line number Diff line number Diff line change @@ -496,7 +496,32 @@ <h1>Clippy Lints</h1>
496
496
</ ul >
497
497
</ div >
498
498
</ div >
499
-
499
+ < div class ="btn-group " filter-dropdown >
500
+ < button type ="button " class ="btn btn-default dropdown-toggle ">
501
+ Applicability < span class ="badge "> {{selectedValuesCount(applicabilities)}}</ span > < span class ="caret "> </ span >
502
+ </ button >
503
+ < ul class ="dropdown-menu ">
504
+ < li class ="checkbox ">
505
+ < label ng-click ="toggleApplicabilities(true) ">
506
+ < input type ="checkbox " class ="invisible " />
507
+ All
508
+ </ label >
509
+ </ li >
510
+ < li class ="checkbox ">
511
+ < label ng-click ="toggleApplicabilities(false) ">
512
+ < input type ="checkbox " class ="invisible " />
513
+ None
514
+ </ label >
515
+ </ li >
516
+ < li role ="separator " class ="divider "> </ li >
517
+ < li class ="checkbox " ng-repeat ="(applicability, enabled) in applicabilities ">
518
+ < label class ="text-capitalize ">
519
+ < input type ="checkbox " ng-model ="applicabilities[applicability] " />
520
+ {{applicability}}
521
+ </ label >
522
+ </ li >
523
+ </ ul >
524
+ </ div >
500
525
</ div >
501
526
< div class ="col-12 col-md-7 search-control ">
502
527
< div class ="input-group ">
Original file line number Diff line number Diff line change 156
156
Object . entries ( versionFilterKeyMap ) . map ( ( [ key , value ] ) => [ value , key ] )
157
157
) ;
158
158
159
+ const APPLICABILITIES_DEFAULT = {
160
+ unspecified : true ,
161
+ unresolved : true ,
162
+ machineApplicable : true ,
163
+ maybeIncorrect : true ,
164
+ hasPlaceholders : true
165
+ } ;
166
+
167
+ $scope . applicabilities = APPLICABILITIES_DEFAULT ;
168
+
159
169
// loadFromURLParameters retrieves filter settings from the URL parameters and assigns them
160
170
// to corresponding $scope variables.
161
171
function loadFromURLParameters ( ) {
You can’t perform that action at this time.
0 commit comments