ing
This commit is contained in:
parent
856e235bdf
commit
ddc091bdf5
|
@ -6,7 +6,7 @@ import 'rxjs/add/operator/map';
|
|||
import { AuthSelector } from '@overflow/member/store';
|
||||
import { Domain } from '@overflow/commons-typescript/model/domain';
|
||||
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 { ConfirmationService } from 'primeng/primeng';
|
||||
import { MessageService } from 'primeng/components/common/messageservice';
|
||||
|
@ -22,7 +22,7 @@ export class NoAuthProbeListContainerComponent implements OnInit {
|
|||
constructor(
|
||||
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) {
|
||||
return null;
|
||||
}
|
||||
|
|
|
@ -7,23 +7,23 @@ import { StateSelector } from '@overflow/core/ngrx/store';
|
|||
|
||||
import { MODULE } from '../noauth-probe.constant';
|
||||
|
||||
import * as NoAuthProbeStore from './entity/noauth-probe';
|
||||
import * as NoAuthProbeEntityStore from './entity/noauth-probe';
|
||||
|
||||
export interface State {
|
||||
noAuthProbe: NoAuthProbeStore.State;
|
||||
noAuthProbe: NoAuthProbeEntityStore.State;
|
||||
}
|
||||
|
||||
export const REDUCERS = {
|
||||
noAuthProbe: NoAuthProbeStore.reducer,
|
||||
noAuthProbe: NoAuthProbeEntityStore.reducer,
|
||||
};
|
||||
|
||||
export const EFFECTS = [
|
||||
NoAuthProbeStore.Effects,
|
||||
NoAuthProbeEntityStore.Effects,
|
||||
];
|
||||
|
||||
export const selectState = createFeatureSelector<State>(MODULE.name);
|
||||
|
||||
export const NoAuthProbeSelector = NoAuthProbeStore.getSelectors(createSelector(
|
||||
export const NoAuthProbeEntitySelector = NoAuthProbeEntityStore.getSelectors(createSelector(
|
||||
selectState,
|
||||
(state: State) => state.noAuthProbe
|
||||
));
|
||||
|
|
Loading…
Reference in New Issue
Block a user