From 0e85a1c7a78ae569be58bf5e0d7a8fabafc78b65 Mon Sep 17 00:00:00 2001 From: Alexander Reifschneider <alexander.reifschneider@mgm-tp.com> Date: Wed, 29 Jan 2025 13:06:22 +0100 Subject: [PATCH] OZG-7166 add small improvement --- alfa-client/apps/info/src/app/app.component.html | 2 +- alfa-client/apps/info/src/app/app.component.spec.ts | 10 +++++----- alfa-client/apps/info/src/app/app.component.ts | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/alfa-client/apps/info/src/app/app.component.html b/alfa-client/apps/info/src/app/app.component.html index ff204a565b..b30e793d25 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 3a0dee1b73..a9aef32a46 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 bd7abe168d..65ebf90d0d 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'; } } -- GitLab