mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
minor refactoring, rename AcaState to AppStore
rename main store to a more traditional name
This commit is contained in:
@@ -34,7 +34,7 @@ import { HeaderComponent } from './header.component';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { StoreModule, Store } from '@ngrx/store';
|
||||
import { appReducer } from '../../store/reducers/app.reducer';
|
||||
import { INITIAL_STATE, AcaState } from '../../store/states/app.state';
|
||||
import { INITIAL_STATE, AppStore } from '../../store/states/app.state';
|
||||
import { SetAppNameAction } from '../../store/actions/app-name.action';
|
||||
import { SetHeaderColorAction } from '../../store/actions/header-color.action';
|
||||
|
||||
@@ -42,7 +42,7 @@ describe('HeaderComponent', () => {
|
||||
let fixture: ComponentFixture<HeaderComponent>;
|
||||
let component: HeaderComponent;
|
||||
let appConfigService: AppConfigService;
|
||||
let store: Store<AcaState>;
|
||||
let store: Store<AppStore>;
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
|
@@ -26,7 +26,7 @@
|
||||
import { Component, Output, EventEmitter, ViewEncapsulation } from '@angular/core';
|
||||
import { Store } from '@ngrx/store';
|
||||
import { Observable } from 'rxjs/Rx';
|
||||
import { AcaState } from '../../store/states/app.state';
|
||||
import { AppStore } from '../../store/states/app.state';
|
||||
import { selectHeaderColor, selectAppName, selectLogoPath } from '../../store/selectors/app.selectors';
|
||||
|
||||
@Component({
|
||||
@@ -42,7 +42,7 @@ export class HeaderComponent {
|
||||
headerColor$: Observable<string>;
|
||||
logo$: Observable<string>;
|
||||
|
||||
constructor(store: Store<AcaState>) {
|
||||
constructor(store: Store<AppStore>) {
|
||||
this.headerColor$ = store.select(selectHeaderColor);
|
||||
this.appName$ = store.select(selectAppName);
|
||||
this.logo$ = store.select(selectLogoPath);
|
||||
|
Reference in New Issue
Block a user