Skip to content

Commit

Permalink
618 layer upgrade UI bug (#619)
Browse files Browse the repository at this point in the history
* check for edge case

* same check for revoked techniques

* minor change

* move technique creation to fn

* clean up platform parsing

* move relationship parsing to fn

* refactor relationship parsing

* minor fix comparing list to string

* additional refactor

* fn documentation

* fix layer information component
  • Loading branch information
clemiller authored Feb 25, 2024
1 parent eb76a01 commit 64aa247
Show file tree
Hide file tree
Showing 3 changed files with 164 additions and 137 deletions.
8 changes: 7 additions & 1 deletion nav-app/src/app/classes/stix/domain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export class Domain {
revoked_by: new Map<string, string>(),
// technique targets asset
// ID of asset to [] of technique IDs
targeted_assets: new Map<string, string>(),
targeted_assets: new Map<string, string[]>(),
};

constructor(domain_identifier: string, name: string, version: Version, urls?: string[]) {
Expand All @@ -90,4 +90,10 @@ export class Domain {
public getVersion(): string {
return this.version.number;
}

public executeCallbacks(): void {
for (let callback of this.dataLoadedCallbacks) {
callback();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ import * as globals from '../utils/globals';
})
export class LayerInformationComponent {
public get layerFormatLink(): string {
return `../layers/LAYERFORMATv${globals.layerVersion.replace('.', '_')}.md`;
return `./layers/LAYERFORMATv${globals.layerVersion.replace('.', '_')}.md`;
}
}
Loading

0 comments on commit 64aa247

Please sign in to comment.