diff --git a/nav-app/src/app/layer-upgrade/layer-upgrade.component.ts b/nav-app/src/app/layer-upgrade/layer-upgrade.component.ts index a95c9a0bd..e2b5ba849 100644 --- a/nav-app/src/app/layer-upgrade/layer-upgrade.component.ts +++ b/nav-app/src/app/layer-upgrade/layer-upgrade.component.ts @@ -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); }