summaryrefslogtreecommitdiffstats
path: root/cds-ui/client/src/app/common
diff options
context:
space:
mode:
authorArundathi Patil <arundpil@in.ibm.com>2019-03-11 17:08:34 +0530
committerArundathi Patil <arundpil@in.ibm.com>2019-03-11 11:50:28 +0000
commit29c19fef5f5b4249a1767e52703577d5db49dc0d (patch)
treec386f2f5fd270db395978778dd6fafbeaffca3f2 /cds-ui/client/src/app/common
parentfbdd8c6d2ed62b2de8429083a06813faa22b0988 (diff)
Store changes
Added blueprint name variable to blueprintState model Issue-ID: CCSDK-1135 Change-Id: I647e9f7440663c6cf1f5672ea7fd2a75f5bcf0aa Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
Diffstat (limited to 'cds-ui/client/src/app/common')
-rw-r--r--cds-ui/client/src/app/common/core/store/models/blueprintState.model.ts1
-rw-r--r--cds-ui/client/src/app/common/core/store/reducers/blueprint.reducer.ts1
-rw-r--r--cds-ui/client/src/app/common/core/store/state/blueprint.state.ts1
3 files changed, 3 insertions, 0 deletions
diff --git a/cds-ui/client/src/app/common/core/store/models/blueprintState.model.ts b/cds-ui/client/src/app/common/core/store/models/blueprintState.model.ts
index 5981f0136..6d2659248 100644
--- a/cds-ui/client/src/app/common/core/store/models/blueprintState.model.ts
+++ b/cds-ui/client/src/app/common/core/store/models/blueprintState.model.ts
@@ -25,6 +25,7 @@ import { IBlueprint } from './blueprint.model';
export interface IBlueprintState {
blueprint: IBlueprint,
+ name?: string;
files?: any;
filesData?: any;
isLoadSuccess?: boolean;
diff --git a/cds-ui/client/src/app/common/core/store/reducers/blueprint.reducer.ts b/cds-ui/client/src/app/common/core/store/reducers/blueprint.reducer.ts
index b6c23ecf8..37a659da6 100644
--- a/cds-ui/client/src/app/common/core/store/reducers/blueprint.reducer.ts
+++ b/cds-ui/client/src/app/common/core/store/reducers/blueprint.reducer.ts
@@ -53,6 +53,7 @@ export function blueprintReducer(state: IBlueprintState = initialBlueprintState,
case BlueprintActions.SET_BLUEPRINT_STATE :
return {...state,
blueprint: action.payload.blueprint,
+ name: action.payload.name,
files: action.payload.files,
filesData: action.payload.filesData
}
diff --git a/cds-ui/client/src/app/common/core/store/state/blueprint.state.ts b/cds-ui/client/src/app/common/core/store/state/blueprint.state.ts
index 1899cb26e..19a837693 100644
--- a/cds-ui/client/src/app/common/core/store/state/blueprint.state.ts
+++ b/cds-ui/client/src/app/common/core/store/state/blueprint.state.ts
@@ -25,6 +25,7 @@ import { IBlueprint } from '../models/blueprint.model';
export const initialBlueprintState : IBlueprintState = {
blueprint : {} as IBlueprint,
+ name: '',
files: [],
filesData: [],
isLoadSuccess: false,