diff --git a/src/app/components/header/header.component.html b/src/app/components/header/header.component.html
index 15af2fe7d..bf90fd941 100644
--- a/src/app/components/header/header.component.html
+++ b/src/app/components/header/header.component.html
@@ -2,8 +2,7 @@
diff --git a/src/app/components/header/header.component.scss b/src/app/components/header/header.component.scss
index 576e8f580..b829d033b 100644
--- a/src/app/components/header/header.component.scss
+++ b/src/app/components/header/header.component.scss
@@ -42,16 +42,5 @@
line-height: 1;
letter-spacing: .02em;
font-weight: 400;
-
- &:after {
- content: "Build #" attr(data-build-number);
- color: rgba(white, .66);
- font-size: 8px;
- position: absolute;
- bottom: 8px;
- right: 2px;
- line-height: 1;
- text-indent: 0;
- }
}
}
diff --git a/src/app/components/header/header.component.spec.ts b/src/app/components/header/header.component.spec.ts
index 5b4497e8d..3376d30c4 100644
--- a/src/app/components/header/header.component.spec.ts
+++ b/src/app/components/header/header.component.spec.ts
@@ -57,33 +57,16 @@ describe('HeaderComponent', () => {
if (val === 'application.name') {
return 'app-name';
}
-
- if (val === 'application.build') {
- return 'build-nr';
- }
});
fixture.detectChanges();
});
- it('get application name', () => {
+ it('should get application name from configuration file', () => {
+ expect(appConfigService.get).toHaveBeenCalledWith('application.name');
+ });
+
+ it('it should set application name', () => {
expect(component.appName).toBe('app-name');
});
-
- it('get application build number', () => {
- expect(component.appBuildNumber).toBe('build-nr');
- });
-
- it('get application title', () => {
- expect(component.appTitle).toContain('app-name');
- expect(component.appTitle).toContain('build-nr');
- });
-
- it('toggle contrast', () => {
- component.enhancedContrast = false;
-
- component.toggleContrast();
-
- expect(component.enhancedContrast).toBe(true);
- });
});
diff --git a/src/app/components/header/header.component.ts b/src/app/components/header/header.component.ts
index 5f24938c9..cc800f46d 100644
--- a/src/app/components/header/header.component.ts
+++ b/src/app/components/header/header.component.ts
@@ -25,25 +25,10 @@ import { AppConfigService } from 'ng2-alfresco-core';
encapsulation: ViewEncapsulation.None
})
export class HeaderComponent {
- private enhancedContrast: Boolean = false;
constructor(private appConfig: AppConfigService) {}
get appName(): string {
return this.appConfig.get('application.name');
}
-
- get appBuildNumber(): string {
- return this.appConfig.get('application.build');
- }
-
- get appTitle(): string {
- const { appName, appBuildNumber } = this;
-
- return `${appName} (Build #${appBuildNumber})`;
- }
-
- toggleContrast() {
- this.enhancedContrast = !this.enhancedContrast;
- }
}