mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-10-08 14:51:14 +00:00
deprecate "headerColor" customisation
This commit is contained in:
committed by
Sheena Malhotra
parent
1000814d9f
commit
475c4f401a
@@ -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(() => {
|
||||
|
@@ -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');
|
||||
|
Reference in New Issue
Block a user