minor refactoring, rename AcaState to AppStore

rename main store to a more traditional name
This commit is contained in:
Denys Vuika
2018-06-09 08:11:45 +01:00
parent 1ac85c0149
commit c6cae392e2
12 changed files with 24 additions and 24 deletions

View File

@@ -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({

View File

@@ -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);