diff --git a/alfa-client/apps/info/src/app/app.component.html b/alfa-client/apps/info/src/app/app.component.html index ff204a565bf981c10dfc845c847bf0bf205d976a..b30e793d253d6e07873b825df8c247f8b69e11c6 100644 --- a/alfa-client/apps/info/src/app/app.component.html +++ b/alfa-client/apps/info/src/app/app.component.html @@ -11,7 +11,7 @@ <main class="flex-auto bg-background-50"> <router-outlet></router-outlet> </main> - @if (!isBayernProd) { + @if (!isBayern) { <footer class="ozg-prose flex justify-center gap-4" data-test-id="navigation-footer"> <nav> <ul class="flex flex-wrap justify-center gap-9"> diff --git a/alfa-client/apps/info/src/app/app.component.spec.ts b/alfa-client/apps/info/src/app/app.component.spec.ts index 3a0dee1b73e19f232720c4fbf1e5d1c72c19d12f..a9aef32a46554df9f598a3cbf086e713049d76d7 100644 --- a/alfa-client/apps/info/src/app/app.component.spec.ts +++ b/alfa-client/apps/info/src/app/app.component.spec.ts @@ -27,18 +27,18 @@ describe('AppComponent', () => { describe('component', () => { describe('ngOnInit', () => { - it('should set isBayernProd', () => { + it('should set isBayern', () => { component.ngOnInit(); - expect(component.isBayernProd).toBe(false); + expect(component.isBayern).toBe(false); }); }); }); describe('template', () => { - describe('production bayern', () => { + describe('bundesland bayern', () => { it('should NOT show navigation footer', () => { - component.isBayernProd = true; + component.isBayern = true; fixture.detectChanges(); @@ -46,7 +46,7 @@ describe('AppComponent', () => { }); it('should show navigation footer', () => { - component.isBayernProd = false; + component.isBayern = false; fixture.detectChanges(); diff --git a/alfa-client/apps/info/src/app/app.component.ts b/alfa-client/apps/info/src/app/app.component.ts index bd7abe168dc9233f07ee665ba3fd19fc24ce03df..65ebf90d0dde07e83be8a3fe3981eb46e0c69987 100644 --- a/alfa-client/apps/info/src/app/app.component.ts +++ b/alfa-client/apps/info/src/app/app.component.ts @@ -10,9 +10,9 @@ import { environment } from '../environments/environment'; templateUrl: './app.component.html', }) export class AppComponent implements OnInit { - public isBayernProd: boolean; + public isBayern: boolean; ngOnInit() { - this.isBayernProd = environment.production && environment.bundesland === 'by'; + this.isBayern = environment.bundesland === 'by'; } }