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>
export interface IResourcesState {
resources: IResources,
- isLoadSuccess: boolean;
- isUpdateSuccess: boolean;
- isSaveSuccess: boolean;
+ isLoadSuccess?: boolean;
+ isUpdateSuccess?: boolean;
+ isSaveSuccess?: boolean;
}
\ No newline at end of file
return {...state,
resources: action.payload
}
+ case ResourcesActions.SET_RESOURCES_STATE:
+ return {...state,
+ resources: action.payload.resources
+ }
default:
return state;
}
onChange($event) {
this.data=JSON.parse($event.srcElement.value);
+ this.updateResourcesState();
};
updateResourcesState(){