Skip to content

Commit

Permalink
Merge pull request #701 from sam-warren/DEVOPS-108
Browse files Browse the repository at this point in the history
DEOVPS-108: Environment Banner Fixes
  • Loading branch information
GeorgeWalker authored Dec 17, 2024
2 parents 1ccf5a7 + b672cfd commit d11eeea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
4 changes: 1 addition & 3 deletions dfa/src/UI/embc-dfa/src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
(closeEvent)="closeOutageBanner($event)"
></app-outage-banner>

@if (environment !== null && environment !== undefined) {
<app-environment-banner [environment]="environment"></app-environment-banner>
}
<app-environment-banner *ngIf="environment" [environment]="environment"></app-environment-banner>

<app-header
[ngStyle]="
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,12 @@ import { NgStyle } from '@angular/common';
@Component({
selector: 'app-environment-banner',
templateUrl: './environment-banner.component.html',
styleUrls: ['./environment-banner.component.scss'],
styleUrls: ['./environment-banner.component.scss']
})
export class EnvironmentBannerComponent implements OnInit {
environment: EnvironmentInformation;
@Input() environment: EnvironmentInformation;

constructor(private envBannerService: EnvironmentBannerService) {}
constructor() {}

ngOnInit(): void {
this.environment = this.envBannerService.getEnvironmentBanner();
}
ngOnInit(): void {}
}

0 comments on commit d11eeea

Please sign in to comment.