deprecate "headerColor" customisation

This commit is contained in:
Denys Vuika
2023-02-11 11:05:35 -05:00
committed by Sheena Malhotra
parent 1000814d9f
commit 475c4f401a
14 changed files with 1 additions and 37 deletions

View File

@@ -54,7 +54,6 @@ describe('AppHeaderComponent', () => {
} as any;
const app = {
headerColor: 'some-color',
appName: 'name',
logoPath: 'some/path'
} as AppState;
@@ -84,7 +83,6 @@ describe('AppHeaderComponent', () => {
it('should set header color, header text color, name and logo', fakeAsync(() => {
component.appName$.subscribe((val) => expect(val).toBe(app.appName));
component.logo$.subscribe((val) => expect(val).toBe(app.logoPath));
component.headerColor$.subscribe((val) => expect(val).toBe(app.headerColor));
}));
it('should get header actions', fakeAsync(() => {

View File

@@ -27,7 +27,7 @@ import { Component, ViewEncapsulation, Output, EventEmitter, OnInit, Input, OnDe
import { Store } from '@ngrx/store';
import { Observable, Subject } from 'rxjs';
import { ContentActionRef } from '@alfresco/adf-extensions';
import { AppStore, getHeaderColor, getAppName, getLogoPath } from '@alfresco/aca-shared/store';
import { AppStore, getAppName, getLogoPath } from '@alfresco/aca-shared/store';
import { AppExtensionService } from '@alfresco/aca-shared';
import { takeUntil } from 'rxjs/operators';
import { AppConfigService, SidenavLayoutComponent } from '@alfresco/adf-core';
@@ -55,14 +55,12 @@ export class AppHeaderComponent implements OnInit, OnDestroy {
}
appName$: Observable<string>;
headerColor$: Observable<any>;
logo$: Observable<string>;
landingPage: string;
actions: Array<ContentActionRef> = [];
constructor(public store: Store<AppStore>, private appExtensions: AppExtensionService, private appConfigService: AppConfigService) {
this.headerColor$ = store.select(getHeaderColor);
this.appName$ = store.select(getAppName);
this.logo$ = store.select(getLogoPath);
this.landingPage = this.appConfigService.get('landingPage', '/personal-files');