summaryrefslogtreecommitdiffstats
path: root/cds-ui/client/src/app/common/core/store/reducers/resources.reducer.ts
diff options
context:
space:
mode:
authorArundathi Patil <arundpil@in.ibm.com>2019-07-30 23:26:53 +0530
committerArundathi Patil <arundpil@in.ibm.com>2019-07-30 23:27:02 +0530
commit79ba5452adad404504c4992442f4f6df9ff2e586 (patch)
treef94462b1d5d22a157b0fe8b652c2c273c4be2143 /cds-ui/client/src/app/common/core/store/reducers/resources.reducer.ts
parent06cc572fb972a0dba802d90ac51c38f4ad124a12 (diff)
Resource-edit- store changes
implemented code to save the changes made in resource edit component to the store Issue-ID: CCSDK-707 Change-Id: I5f6051cc34c246ee6c09b657ed764c2671914605 Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
Diffstat (limited to 'cds-ui/client/src/app/common/core/store/reducers/resources.reducer.ts')
-rw-r--r--cds-ui/client/src/app/common/core/store/reducers/resources.reducer.ts4
1 files changed, 4 insertions, 0 deletions
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;
}