|
|
|
|
@ -2,7 +2,12 @@ import { Action, createSelector, Selector, State, StateContext, Store } from '@n
|
|
|
|
|
import { of } from 'rxjs';
|
|
|
|
|
import { switchMap, tap } from 'rxjs/operators';
|
|
|
|
|
import snq from 'snq';
|
|
|
|
|
import { GetAppConfiguration, PatchRouteByName, AddRoute } from '../actions/config.actions';
|
|
|
|
|
import {
|
|
|
|
|
GetAppConfiguration,
|
|
|
|
|
PatchRouteByName,
|
|
|
|
|
AddRoute,
|
|
|
|
|
SetEnvironment,
|
|
|
|
|
} from '../actions/config.actions';
|
|
|
|
|
import { SetLanguage } from '../actions/session.actions';
|
|
|
|
|
import { ABP } from '../models/common';
|
|
|
|
|
import { Config } from '../models/config';
|
|
|
|
|
@ -291,6 +296,13 @@ export class ConfigState {
|
|
|
|
|
flattedRoutes,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Action(SetEnvironment)
|
|
|
|
|
setEnvironment({ patchState }: StateContext<Config.State>, environment: Config.Environment) {
|
|
|
|
|
return patchState({
|
|
|
|
|
environment,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function patchRouteDeep(
|
|
|
|
|
|