Skip to content

Commit

Permalink
Correct variable casing
Browse files Browse the repository at this point in the history
  • Loading branch information
sggerard committed Nov 25, 2024
1 parent 6859f06 commit e93f229
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</div>

<h3>Inspections &amp; Orders</h3>
<p *ngIf="NRCEDLinkEnabled">
<p *ngIf="nrcedLinkEnabled">
<button class="btn hero-btn content-btn-alt fixed-r-btn" (click)="openNRCED()" (keydown)="openNRCED()" tabIndex={0} role="button">
<div class="center">
<span>NRCED</span><i class="material-icons">link</i>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export class ComplianceTabContentComponent implements OnInit, OnDestroy {
loading: boolean;
project: Project;
collections: CollectionsArray;
nrcedLinkEnabled: boolean;

sortField: string;
sortAsc: boolean;
Expand All @@ -25,20 +26,16 @@ export class ComplianceTabContentComponent implements OnInit, OnDestroy {
// private fields
private sub: Subscription;

NRCEDLinkEnabled: boolean;

constructor(private readonly route: ActivatedRoute, private readonly logger: LoggerService, private readonly configService: ConfigService) { }

ngOnInit(): void {
this.loading = true;

this.nrcedLinkEnabled = this.configService.checkFeatureFlag("nrced-link","true");
this.sub = this.route.parent.data.subscribe({
next: (data: { project: Project }) => this.parseData(data),
error: (error) => this.logger.log(error),
complete: () => this.loading = false
})

this.NRCEDLinkEnabled = this.configService.checkFeatureFlag("nrced-link","true");
}

parseData(data: {project: Project}): void {
Expand Down

0 comments on commit e93f229

Please sign in to comment.