Skip to content

Commit

Permalink
platform improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
clemiller committed May 9, 2024
1 parent 0094717 commit 9c76cd3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions nav-app/src/app/classes/view-model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -835,6 +835,7 @@ export class ViewModel {
}
// filter by platform
let platforms = new Set(technique.platforms);
if (platforms.size == 0) { platforms.add('None'); }
for (let platform of this.filters.platforms.selection) {
if (platforms.has(platform)) {
techniqueVM.setIsVisible(true);
Expand Down
4 changes: 3 additions & 1 deletion nav-app/src/app/services/data.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,9 @@ export class DataService {

// parse platforms
allTechniques.forEach((technique) => {
technique.platforms?.forEach(platforms.add, platforms);
if (!technique.deprecated && !technique.revoked) {
technique.platforms?.forEach(platforms.add, platforms);
}
});

return platforms;
Expand Down

0 comments on commit 9c76cd3

Please sign in to comment.