This commit is contained in:
crusader 2018-05-27 15:40:46 +09:00
parent 856e235bdf
commit ddc091bdf5
2 changed files with 7 additions and 7 deletions

View File

@ -6,7 +6,7 @@ import 'rxjs/add/operator/map';
import { AuthSelector } from '@overflow/member/store'; import { AuthSelector } from '@overflow/member/store';
import { Domain } from '@overflow/commons-typescript/model/domain'; import { Domain } from '@overflow/commons-typescript/model/domain';
import * as ListStore from '../../store/entity/noauth-probe'; import * as ListStore from '../../store/entity/noauth-probe';
import { NoAuthProbeSelector } from '../../store'; import { NoAuthProbeEntitySelector } from '../../store';
import { NoAuthProbe } from '@overflow/commons-typescript/model/noauth'; import { NoAuthProbe } from '@overflow/commons-typescript/model/noauth';
import { ConfirmationService } from 'primeng/primeng'; import { ConfirmationService } from 'primeng/primeng';
import { MessageService } from 'primeng/components/common/messageservice'; import { MessageService } from 'primeng/components/common/messageservice';
@ -22,7 +22,7 @@ export class NoAuthProbeListContainerComponent implements OnInit {
constructor( constructor(
private store: Store<ListStore.State>, private store: Store<ListStore.State>,
) { ) {
this.noauthProbes$ = this.store.pipe(select(NoAuthProbeSelector.selectAll)).map((_noauthProbes: NoAuthProbe[]) => { this.noauthProbes$ = this.store.pipe(select(NoAuthProbeEntitySelector.selectAll)).map((_noauthProbes: NoAuthProbe[]) => {
if (null === _noauthProbes) { if (null === _noauthProbes) {
return null; return null;
} }

View File

@ -7,23 +7,23 @@ import { StateSelector } from '@overflow/core/ngrx/store';
import { MODULE } from '../noauth-probe.constant'; import { MODULE } from '../noauth-probe.constant';
import * as NoAuthProbeStore from './entity/noauth-probe'; import * as NoAuthProbeEntityStore from './entity/noauth-probe';
export interface State { export interface State {
noAuthProbe: NoAuthProbeStore.State; noAuthProbe: NoAuthProbeEntityStore.State;
} }
export const REDUCERS = { export const REDUCERS = {
noAuthProbe: NoAuthProbeStore.reducer, noAuthProbe: NoAuthProbeEntityStore.reducer,
}; };
export const EFFECTS = [ export const EFFECTS = [
NoAuthProbeStore.Effects, NoAuthProbeEntityStore.Effects,
]; ];
export const selectState = createFeatureSelector<State>(MODULE.name); export const selectState = createFeatureSelector<State>(MODULE.name);
export const NoAuthProbeSelector = NoAuthProbeStore.getSelectors(createSelector( export const NoAuthProbeEntitySelector = NoAuthProbeEntityStore.getSelectors(createSelector(
selectState, selectState,
(state: State) => state.noAuthProbe (state: State) => state.noAuthProbe
)); ));