Skip to content

Commit

Permalink
review based on filter
Browse files Browse the repository at this point in the history
  • Loading branch information
adpare committed Feb 15, 2024
1 parent b3ff4e9 commit c9c38e1
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions nav-app/src/app/layer-upgrade/layer-upgrade.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,16 @@ export class LayerUpgradeComponent implements OnInit {
*/
public reviewAll(section: string): void {
let sectionIDs = this.changelog[section];
for(let sectionID of sectionIDs){
this.changelog.reviewed.add(sectionID);
let filtered_section = document.getElementById("filter_"+section) as HTMLInputElement;
if(section!="additions" && filtered_section.checked){
for(let filteredID of this.filteredIDs){
this.changelog.reviewed.add(filteredID);
}
}
else{
for(let sectionID of sectionIDs){
this.changelog.reviewed.add(sectionID);
}
}
this.onStepChange(section, 1);
}
Expand Down

0 comments on commit c9c38e1

Please sign in to comment.