diff options
Diffstat (limited to 'cds-ui/client/src/app/common')
-rw-r--r-- | cds-ui/client/src/app/common/core/store/models/resourcesState.model.ts | 6 | ||||
-rw-r--r-- | cds-ui/client/src/app/common/core/store/reducers/resources.reducer.ts | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/cds-ui/client/src/app/common/core/store/models/resourcesState.model.ts b/cds-ui/client/src/app/common/core/store/models/resourcesState.model.ts index 7dacf3242..df9c2878f 100644 --- a/cds-ui/client/src/app/common/core/store/models/resourcesState.model.ts +++ b/cds-ui/client/src/app/common/core/store/models/resourcesState.model.ts @@ -22,7 +22,7 @@ import { IResources } from './resources.model'; export interface IResourcesState { resources: IResources, - isLoadSuccess: boolean; - isUpdateSuccess: boolean; - isSaveSuccess: boolean; + isLoadSuccess?: boolean; + isUpdateSuccess?: boolean; + isSaveSuccess?: boolean; }
\ No newline at end of file diff --git a/cds-ui/client/src/app/common/core/store/reducers/resources.reducer.ts b/cds-ui/client/src/app/common/core/store/reducers/resources.reducer.ts index c9d587d16..b6b11b935 100644 --- a/cds-ui/client/src/app/common/core/store/reducers/resources.reducer.ts +++ b/cds-ui/client/src/app/common/core/store/reducers/resources.reducer.ts @@ -29,6 +29,10 @@ export function resourcesReducer(state: IResourcesState = initialResourcesState, return {...state, resources: action.payload } + case ResourcesActions.SET_RESOURCES_STATE: + return {...state, + resources: action.payload.resources + } default: return state; } |