|
|
@ -3,11 +3,13 @@ import { tap } from 'rxjs/operators'; |
|
|
import { GetFeatures, UpdateFeatures } from '../actions/feature-management.actions'; |
|
|
import { GetFeatures, UpdateFeatures } from '../actions/feature-management.actions'; |
|
|
import { FeatureManagement } from '../models/feature-management'; |
|
|
import { FeatureManagement } from '../models/feature-management'; |
|
|
import { FeatureManagementService } from '../services/feature-management.service'; |
|
|
import { FeatureManagementService } from '../services/feature-management.service'; |
|
|
|
|
|
import { Injectable } from '@angular/core'; |
|
|
|
|
|
|
|
|
@State<FeatureManagement.State>({ |
|
|
@State<FeatureManagement.State>({ |
|
|
name: 'FeatureManagementState', |
|
|
name: 'FeatureManagementState', |
|
|
defaults: { features: {} } as FeatureManagement.State, |
|
|
defaults: { features: {} } as FeatureManagement.State, |
|
|
}) |
|
|
}) |
|
|
|
|
|
@Injectable() |
|
|
export class FeatureManagementState { |
|
|
export class FeatureManagementState { |
|
|
@Selector() |
|
|
@Selector() |
|
|
static getFeatures({ features }: FeatureManagement.State) { |
|
|
static getFeatures({ features }: FeatureManagement.State) { |
|
|
|